design.css
162 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
/**
* 全局设计变量 + 内部组件库(@hm/ui)的样式。
*
* 组件样式放在全局而不是 @hm/ui 包内,是个有意的取舍:这是单应用的内部组件库,
* 不需要被第三方消费,全局 CSS 变量 + 语义类名已经足够,还能让主题切换只改一处。
* 若将来要发包给别的项目,再拆 CSS-in-JS 或 CSS Module 不迟。
*
* 色值取自深城交官网主样式表(详见 src/features/heatmap/map/palette.ts 的说明)。
*/
/*
* 字体:拉丁/数字一副可变字面(DM Sans),中文现在用打包的苹方(评估中)。
*
* 中文打包的历史(两进一出,改回来之前先读这段):
* ① 最早打包过这份苹方 ttf,撤了 —— 两个原因叠在一起:那份 ttf 没有 fpgm/prep/cvt,
* 即没有任何屏幕 hinting,竖笔画允许落在半个像素上,Windows 低分屏整页发虚;
* 且只有 Regular 一档,全站 500/600/700 变成浏览器胀轮廓的合成粗。
* ② 撤掉后中文交给系统字面(Windows 雅黑、苹果苹方),雅黑带 hinting、带真 Bold,
* 旧栈在 Windows 上落的一直是雅黑。
* ③ 2026-11-04 超人要求重新接回来看效果 —— 现在这条 @font-face 就是这次评估加的,
* 家族名 'PingFang Web' 只在 --hm-font 里排在 DM Sans 之后接住中文。
* 要回退:删掉下面这条 @font-face、把 --hm-font 里的 'PingFang Web' 拿掉即可,
* fonts/PingFang-Regular.ttf 留在目录里不影响任何东西。
*
* 数字这一档用可变字体:同一个文件带 wght 100..1000,所以读数与地图盘心的 600/700
* 用的是真的 SemiBold/Bold 实例,不再是假粗。62KB,一副就够。
*
* unicode-range 抄 Google 的 latin 分片:把 DM Sans 明确圈在拉丁与数字上,汉字和全角标点
* (、。「」那类 U+3000 段)根本不进这副字面,直接落苹方(打包的这份)——
* 少一层「先试子集再回退」。
*
* font-display 用 block 而不是 swap:地图上的案量数字、排名牌要用 canvas 量字宽再画底衬,
* 量出来的宽度按数据缓存过。先按兜底字体画一遍再换成真字体,缓存里的宽度就是错的,
* 底衬和数字会错位。block 让首屏等字体就绪 —— 保留 block 是刻意的,不能改成 swap。
* 苹方 2026-11-27 转成 woff2(同样 3728 字形、字宽逐字不变):754KB → 387KB,
* 首屏那"慢一拍"缩短了一半;ttf 留作老浏览器回退,正常路径不会下载它。
*/
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 100 1000;
font-display: block;
src: url('./fonts/DM-Sans-var.woff2') format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* 打包的苹方:只接中文(DM Sans 的 unicode-range 先把拉丁/数字截走)。
weight 声明 100 900 只是让各字重都能命中这副字面 —— 它本身只有 Regular,
500/600/700 由浏览器合成(假粗),这正是历史上撤掉它的原因之一,看效果时留意。
woff2 是 2026-11-27 由同目录的 ttf 逐字形转换而来(3728 字形一个不差,字宽不变),
754KB → 387KB;ttf 只作老浏览器回退留在目录里,线上路径不会下载。 */
@font-face {
font-family: 'PingFang Web';
font-style: normal;
font-weight: 100 900;
font-display: block;
src: url('./fonts/PingFang-Regular.woff2') format('woff2'),
url('./fonts/PingFang-Regular.ttf') format('truetype');
}
:root {
--hm-primary: #4653a2;
--hm-primary-hover: #4c58aa;
--hm-primary-light: #5c6fb4;
--hm-primary-soft: #b8bddc;
--hm-primary-deep: #222b5f;
--hm-primary-wash: rgba(70, 83, 162, 0.08);
--hm-primary-wash-strong: rgba(70, 83, 162, 0.16);
--hm-accent-cyan: #28a7e1;
--hm-accent-sky: #0ac9f5;
--hm-accent-gold: #fcc929;
--hm-accent-gold-deep: #c99a18;
--hm-bg: #f5f6f9;
--hm-surface: #ffffff;
--hm-surface-sunken: #fafbfd;
--hm-border: #e4e4e4;
--hm-divider: #ededed;
--hm-text-1: #222222;
--hm-text-2: #555a66;
--hm-text-3: #8c8c8c;
/* 全站唯一的一份字体栈。antd 主题(themeConfig)直接引这个变量,
不在 TS 里再抄一遍;地图自绘文字用的是同一组字族名(见 palette.ts 的 MAP_LABEL_FONT)。
中文这一档评估期接打包苹方('PingFang Web',见上面 @font-face 的历史注释):
要回退就把 'PingFang Web' 拿掉,中文回落雅黑(Windows)/ 系统苹方(macOS)。 */
--hm-font:
'DM Sans', 'PingFang Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Microsoft YaHei', sans-serif;
--hm-error: #e5484d;
--hm-warn: #d97706;
--hm-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.14);
--hm-shadow-pop: 0 12px 40px -12px rgba(16, 24, 40, 0.24);
--hm-radius: 10px;
--hm-radius-lg: 14px;
/* 悬浮毛玻璃层:地图全屏后,顶栏与左右操作区以玻璃卡片浮在地图之上。
侧栏更通透(低不透明度 + 高模糊),顶栏取更深的冷灰底,压住整页顶部视觉重量。 */
--hm-rail-right: 372px; /* 右侧操作面板宽度 */
--hm-dock-w: 372px; /* 左侧「黑点清单」通栏宽度,与右栏同宽,两缘对称 */
--hm-tab-w: 46px; /* 竖向页签把手宽度,地图浮层按它避让 */
--hm-rail-gap: 16px; /* 玻璃卡片与视口边缘的留白 */
--hm-header-h: 60px;
--hm-glass-side: rgba(255, 255, 255, 0.62);
--hm-glass-side-strong: rgba(255, 255, 255, 0.78);
--hm-glass-drawer: rgba(255, 255, 255, 0.74);
--hm-glass-border: rgba(255, 255, 255, 0.6);
--hm-glass-blur: blur(20px) saturate(150%);
--hm-glass-shadow: 0 8px 32px -8px rgba(16, 24, 40, 0.28);
--hm-glass-header: linear-gradient(
180deg,
rgba(30, 41, 82, 0.86) 0%,
rgba(38, 50, 96, 0.74) 100%
);
}
/*
* 拖动 / 缩放地图期间的那一拍:整页玻璃**彻底不模糊**,只留压实过的底色。
*
* 为什么要单独开这一档:backdrop-filter 的开销是「每帧把它身后那块区域重新采样、
* 再按半径卷积一遍」,而这个项目底下一整块全屏 WebGL 地图。地图一动,顶栏(整屏宽)、
* 右栏面板、左侧清单、三个把手、图例、读数胶囊、抽屉全都要各自重模糊一次,
* 半径还是 20px —— 这是拖动卡顿里最大的一笔单项开销,而且它跟数据量无关,空图也卡。
*
* 类名由地图的手势事件挂 / 摘(见 MapStage 的 hm-map-busy 那段),松手后过一拍才恢复,
* 因为松手紧接着就是重新聚合与重喂热力。静止时的外观与原来完全一致,这一档只在按住时存在。
*
* 底色同步压实是必要的:只把模糊拿掉会让玻璃在移动中的地图上读成「变透明」,
* 而移动中的底色本来就读不出细节 —— 宁可玻璃实在一点。
*
* ⚠️ 这一档现在是 `none`(原先是 blur(4px)),是按「先量出这一笔值多少钱」的要求试出来的:
* 4px 那档虽然只是原来的五分之一,但它仍然是一张参与合成的模糊表面,每一帧都要重新采样一遍;
* 而拖动途中读不出材质差别 —— 画面正糊着走。要恢复旧手感,把这一行改回
* `blur(4px) saturate(150%)` 即可,别的地方都不用动。
*/
html.hm-map-busy {
--hm-glass-blur: none;
--hm-glass-side: rgba(255, 255, 255, 0.84);
--hm-glass-side-strong: rgba(255, 255, 255, 0.9);
--hm-glass-drawer: rgba(255, 255, 255, 0.88);
--hm-glass-header: linear-gradient(
180deg,
rgba(30, 41, 82, 0.93) 0%,
rgba(38, 50, 96, 0.86) 100%
);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
/* 最外层永远不滚:这是全屏地图应用,页面级滚动条从来不该出现。
* 滚动只允许长在各容器自己身上——抽屉正文(长清单)、侧栏面板、空态引导弹窗
* 都有自己的 overflow。曾出现过「鼠标移到抽屉、屏幕右缘冒出横竖滚动条」:
* 那是抽屉(position:fixed 贴屏幕右缘)自己的滚动条贴在屏幕边缘,观感像全局的;
* 这里再把文档级滚动整体关死,任何容器溢出都不可能把它变成页面滚动条。
* 代价:溢出内容被裁而不是可达——本应用没有需要页面滚动的界面。 */
overflow: hidden;
}
body {
background: var(--hm-bg);
color: var(--hm-text-1);
font-family: var(--hm-font);
-webkit-font-smoothing: antialiased;
}
/* 纤细克制的滚动条。
*
* 拇指用品牌深靛蓝的半透明,而不是浅蓝灰:侧栏是浅色玻璃,浅色拇指落在上面
* 几乎看不见 —— 这一版布局把「能不能滚」当成了主要交互,滚动条就是它的入口提示,
* 看不见等于没有。半透明深靛在浅色底上够清楚,又不会像纯黑那样压住玻璃质感。 */
* {
scrollbar-width: thin;
scrollbar-color: rgba(34, 43, 95, 0.32) transparent;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: rgba(34, 43, 95, 0.32);
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(34, 43, 95, 0.5);
}
::-webkit-scrollbar-track {
background: transparent;
}
/* ------------------------------- Panel ------------------------------- */
.hm-panel {
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius-lg);
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
overflow: hidden;
}
.hm-panel__head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px 14px 0px;
background: var(--hm-glass-side-strong);
border-bottom: 1px solid var(--hm-glass-border);
}
/* 标题行下方的整行内容(headRow prop):wrap 到下一行、占满整行。
上一行是「这块面板叫什么」,这一行起是表头/操作条 —— 中间一条发丝线
把两件事分开,不用读字也能看出不是同一种东西。 */
.hm-panel__headrow {
flex: 1 1 100%;
min-width: 0;
padding-top: 8px;
border-top: 1px solid var(--hm-divider);
}
.hm-panel__title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: var(--hm-text-1);
letter-spacing: 0.2px;
}
.hm-panel__accent {
width: 3px;
height: 14px;
border-radius: 2px;
background: linear-gradient(180deg, var(--hm-primary) 0%, var(--hm-accent-cyan) 100%);
}
.hm-panel__extra {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--hm-text-3);
}
/*
* 「收起」那颗:面板标题行、地图图例、抽屉标题行共用一颗。
*
* 为什么给它实底和描边,而不是沿用右上角那颗淡色小叉:这一颗要解决的正是
* 「这块玻璃挡住了地图,我得先把它挪开」,而淡色小叉在整页毛玻璃上几乎看不出能按。
* 两个字 + 一截朝向箭头,收向哪一侧由箭头说;复开的地方写在悬浮里,
* 因为收起之后找不到回来的路,等于没人敢按第一下。
* flex-shrink 归零:面板标题行挤的时候(黑点清单那行还有口径读数)先压字号,
* 不许把出口压没。
*/
.hm-collapse {
display: inline-flex;
align-items: center;
gap: 5px;
flex: 0 0 auto;
padding: 3px 9px;
font: inherit;
font-size: 11px;
line-height: 1.4;
color: var(--hm-text-2);
background: var(--hm-glass-side-strong);
border: 1px solid var(--hm-glass-border);
border-radius: 999px;
white-space: nowrap;
cursor: pointer;
transition:
color 0.15s ease,
background 0.15s ease,
border-color 0.15s ease;
}
.hm-collapse:hover {
color: var(--hm-primary);
background: var(--hm-glass-side-strong);
}
.hm-collapse:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
/* 一截朝右的尖角(border 两笔 + 旋转),方向由 --left/--right/--down 三个修饰符改 */
.hm-collapse__chev {
width: 5px;
height: 5px;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(-45deg);
}
.hm-collapse--right .hm-collapse__chev {
transform: rotate(-45deg);
}
.hm-collapse--left .hm-collapse__chev {
transform: rotate(135deg);
}
.hm-collapse--down .hm-collapse__chev {
transform: rotate(45deg);
}
/* 收起来的图例变回左下一枚小牌:留着色阶一小截,让人认出收起的就是这一条 */
.hm-map__legend-chip {
position: absolute;
left: calc(var(--hm-rail-gap) + 2px);
bottom: var(--hm-rail-gap);
z-index: 12;
display: inline-flex;
align-items: center;
gap: 7px;
padding: 5px 10px;
font: inherit;
font-size: 11px;
color: var(--hm-text-2);
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: 999px;
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
cursor: pointer;
/* 与整张图例同速同规则:清单通栏拉开时照样往右挪一列,见下面 .hm-body.is-dock-open */
transition:
left 0.22s cubic-bezier(0.22, 1, 0.36, 1),
bottom 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.hm-map__legend-chip:hover {
color: var(--hm-primary);
background: var(--hm-glass-side-strong);
}
.hm-map__legend-chip:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
.hm-map__legend-chip-ramp {
width: 26px;
height: 5px;
border-radius: 3px;
background: linear-gradient(
90deg,
#2b4ac7 0%,
#18a8ff 22%,
#7ade3c 52%,
#ffce00 68%,
#ff2a2a 92%
);
}
/* 尖角朝上:这一枚是「往上摊开」,和收起那颗朝下正好成一对 */
.hm-map__legend-chip .hm-collapse__chev {
transform: rotate(-135deg);
}
.hm-panel__body {
padding: 4px;
}
.hm-panel__body--flush {
padding: 0;
}
/* 弹性面板:按权重分配侧栏高度,内容在自己的 body 里滚动。
*
* 只给「长度不可预估」的面板用(筛选、分析读数、黑点清单、概览)。
*
* flex-basis 必须是 0 而不是 auto:basis auto 会先按内容尺寸起算再压缩,
* 而清单这种「body 自己滚动」的面板,它的内容高度在测量时会被折叠掉,
* 于是分配结果完全由实现细节决定 —— 实测下来黑点清单只抢到 284px,
* 一屏露不出两条热点。basis 归零后分配只由 grow 权重决定,可预期。
* 选择器统一带 .hm-rail 前缀:上面那条 `> *` 的 flex 简写会一次写回
* grow/shrink/basis 三个值,这里必须靠更高特异性盖掉它。
* min-height 是压缩下限:视口再矮也不让标题+首屏读数被挤成 0,
* 此时由操作栏整体滚动兜底,两层滚动不会同时出现。
* overscroll-behavior: contain 防止滚到头之后把事件传给地图/页面。 */
.hm-rail > .hm-panel--fluid {
display: flex;
flex: 1 1 0;
flex-direction: column;
min-height: 190px;
/* 不封顶,吃满整栏。以前这里是 max-height: max-content(怕高屏把筛选面板拉出大片空白),
* 但一栏一次只挂一个面板之后,封顶的观感是「卡片缩成上方一小块,下面一整列空玻璃」,
* 和左侧通栏的黑点清单明显不对称;切页签时卡片高度还跟着内容跳,看着像 layout bug。
* 现在空白一律落在 body 末尾,内容真超过视口时才由 body 内滚 ——
* 栏本身不再出滚动条(.hm-rail 的 overflow 留着兜底极矮视口)。 */
}
/* 这里原来有 `.hm-panel--minor { flex-grow: 0.55 }`(可操作清单优先于参考性概览),已删。
*
* 删的理由不是「用不上」,而是它会让面板永远铺不满:flex-grow 小于 1 时,
* 弹性空间不是按「比例分完」,而是只分发 grow 之和那么多份(CSS Flexbox §9.7:
* Σgrow < 1 时剩余空间留在行里不分配)。一栏一次只挂一个面板,栏高 713px,
* grow 0.55 就恰好只吃到 391px —— 剩下的三百多像素是一段空玻璃,
* 而内容被压在 343px 的 body 里出滚动条,看着像「高度被谁限制了」。
* 多个面板共处一栏时权重才有意义;单面板一律 grow 1,观感和左通栏对齐。 */
.hm-panel--fluid > .hm-panel__body {
flex: 1 1 auto;
min-height: 0;
/* 这层只负责纵向内滚:overflow-y 设了 auto,按 CSS 规范 overflow-x 会被算成 auto,
任意子元素横向临界超宽(antd 滑块轨道、维度卡片网格在更窄的抽屉里亚像素溢出)
都会冒出一条横向滚动条。这里显式收死 overflow-x,保证「只竖滚、不横滚」。 */
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
}
/* 贴边 body(清单类):body 自己就是滚动容器。
* 滚动条画在 body 右缘 —— 在卡片外面,不占清单宽度;
* 表头(headRow 挂在 header 里)天然在滚动区之外,永远静止。 */
.hm-panel--fluid > .hm-panel__body--flush {
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.hm-panel--fluid > .hm-panel__body--flush > * {
flex: 0 0 auto;
}
/* 清单的垫层:内容不足一屏时撑满 body(卡片铺满可视高度),
* 超过一屏时按内容长高 —— 滚动交给上面那层 body。 */
.hm-panel--fluid > .hm-panel__body--flush > .hm-hotscroll {
flex: 1 0 auto;
padding: 4px;
display: flex;
}
/* 黑点清单的卡片化(与风险概览的 .hm-sectcard 同一套令牌:白底 + 细描边 + 圆角)。
* 卡片只负责长相:整体随垫层长高/缩短,滚动条在它外面的 body 上。 */
.hm-hotscroll > .hm-hotcard {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--hm-surface);
border: 1px solid var(--hm-divider);
border-radius: var(--hm-radius);
overflow: hidden;
}
/* 卡内顶部的重算状态条:body 滚动时会跟着走到卡片外,钉在卡顶把它按住 */
.hm-hotscroll > .hm-hotcard > .hm-hot__loading {
position: sticky;
top: 0;
z-index: 1;
background: var(--hm-surface);
}
/* 列表不再自己滚,铺满卡片剩余高度即可 */
.hm-hotscroll > .hm-hotcard > .hm-hot {
flex: 1 1 auto;
}
/* 最后一行的分隔线与卡片底边重合,会读成两条线 */
.hm-hotscroll > .hm-hotcard > .hm-hot > li:last-child .hm-hot__row {
border-bottom: 0;
}
/* ------------------------------- StatTile ------------------------------- */
.hm-stat-grid {
display: grid;
gap: 10px;
}
.hm-stat {
padding: 10px 12px;
background: rgba(255, 255, 255, 0.4);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
}
.hm-stat__label {
font-size: 12px;
color: var(--hm-text-3);
margin-bottom: 4px;
}
.hm-stat__value {
font-size: 22px;
font-weight: 700;
line-height: 1.15;
font-variant-numeric: tabular-nums;
letter-spacing: -0.3px;
}
.hm-stat__unit {
font-size: 12px;
font-weight: 500;
margin-left: 3px;
color: var(--hm-text-3);
}
.hm-stat__hint {
margin-top: 4px;
font-size: 11px;
color: var(--hm-text-3);
line-height: 1.5;
}
/*
* 可点的读数块(命中案件 / 热力点位数):整块是 button,不再另设「查看」文字 ——
* 数字本身就是被点的那个东西,再加一行动作提示等于把同一个入口说两遍。
* 底下是地图,光靠浅底不足以声明「点得下去」,所以 hover 时给数字加一条虚线下划线:
* 虚线(而非实线)是「此处可点、点了不是跳走」的通用记号。
*/
.hm-stat--link {
display: block;
width: 100%;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
transition:
background 0.16s ease,
border-color 0.16s ease;
}
.hm-stat--link:hover {
background: var(--hm-primary-wash);
border-color: var(--hm-primary-wash-strong);
}
.hm-stat--link:hover .hm-stat__value {
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
/* 已收窄:这一块(前 3 个区 / 前 5 条街道)此刻正作为 mapScope 收窄着地图,再点一次恢复全市 */
.hm-stat--active {
background: var(--hm-primary-wash);
border-color: var(--hm-primary);
box-shadow: inset 0 0 0 1px var(--hm-primary);
}
.hm-stat--link:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
/* ------------------------------- Field ------------------------------- */
.hm-field {
margin-bottom: 14px;
}
.hm-field:last-child {
margin-bottom: 0;
}
.hm-field__label {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 6px;
margin-bottom: 6px;
}
.hm-field__text {
flex: 0 0 auto;
font-size: 12px;
color: var(--hm-text-2);
font-weight: 500;
}
.hm-field__text.is-active {
color: var(--hm-primary);
font-weight: 600;
}
/* 标签旁的说明:必须能折行。原先只给了字号与颜色,长句在 flex 行里既挤扁了
左边的标签、又向右溢出容器(黑点降噪那一段就是这样被截掉的)。
min-width: 0 是折行的前提,text-align: right 让它贴着标签右端收尾。 */
.hm-field__tip {
flex: 1 1 auto;
min-width: 0;
font-size: 11px;
line-height: 1.5;
text-align: right;
color: var(--hm-text-3);
overflow-wrap: anywhere;
}
.hm-field__control {
width: 100%;
}
/* ------------------------------- BrandMark ------------------------------- */
.hm-brand {
display: flex;
align-items: center;
gap: 10px;
}
.hm-brand__mark {
display: block;
filter: drop-shadow(0 4px 10px rgba(70, 83, 162, 0.28));
}
.hm-brand__text {
display: flex;
flex-direction: column;
justify-content: center;
gap: 1px;
white-space: nowrap;
}
.hm-brand__title {
font-size: 16px;
font-weight: 700;
color: var(--hm-text-1);
letter-spacing: 0.6px;
}
.hm-brand__subtitle {
font-size: 9px;
font-weight: 500;
color: var(--hm-text-3);
letter-spacing: 1.1px;
text-transform: uppercase;
}
/* ------------------------------- SplitBar ------------------------------- */
.hm-splitbar {
display: flex;
flex-direction: column;
gap: 9px;
}
.hm-splitbar__row {
display: flex;
flex-direction: column;
gap: 4px;
}
/*
* 榜上可点的每一行(点它 = 看这一区/这一街的案件清单)。整行是 button,
* 键盘 Tab + Enter 才进得去,焦点环也能自然出现 —— 给 div 挂 onClick 做不到。
*
* 左右各撑 6px 内衬让浅底有个边界可读,再用等值负边距收回来:
* 行高和行距(.hm-splitbar 的 gap)都归父容器管,加不加这层内衬,榜的排布一模一样。
* 上下不给内衬,否则浅底会把 9px 的行距吃掉,hover 时两行的底色几乎贴上。
*/
.hm-splitbar__row--link {
font: inherit;
color: inherit;
text-align: left;
background: transparent;
border: 0;
padding: 0 6px;
margin: 0 -6px;
border-radius: 7px;
cursor: pointer;
transition: background 0.16s ease;
}
.hm-splitbar__row--link:hover {
background: var(--hm-primary-wash);
}
.hm-splitbar__row--link:hover .hm-splitbar__label {
color: var(--hm-primary);
}
/* 已收窄态:这一行的区 / 街道此刻正作为 mapScope 收窄着地图(再点一次取消)。
视觉与 hover 同一层,但常驻;左侧一道主色竖条,把「已选中」和「只是鼠标经过」分开。 */
.hm-splitbar__row--active {
background: var(--hm-primary-wash);
box-shadow: inset 2px 0 0 var(--hm-primary);
}
.hm-splitbar__row--active .hm-splitbar__label {
color: var(--hm-primary);
}
.hm-splitbar__row--link:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* 0 起那一档照样画出来(数量不能凭空消失),但它后面没有清单可看,所以不接成能点的 */
.hm-splitbar__row--link:disabled {
cursor: default;
}
.hm-splitbar__row--link:disabled:hover {
background: transparent;
}
.hm-splitbar__row--link:disabled:hover .hm-splitbar__label {
color: var(--hm-text-2);
}
.hm-splitbar__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
font-size: 12px;
}
.hm-splitbar__label {
color: var(--hm-text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-splitbar__value {
color: var(--hm-text-1);
font-weight: 600;
font-variant-numeric: tabular-nums;
flex: 0 0 auto;
}
.hm-splitbar__value em {
font-style: normal;
font-weight: 400;
font-size: 11px;
color: var(--hm-text-3);
margin-left: 5px;
}
.hm-splitbar__track {
height: 5px;
background: var(--hm-divider);
border-radius: 3px;
overflow: hidden;
}
.hm-splitbar__fill {
height: 100%;
border-radius: 3px;
transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/*
* 榜末那条「地址里读不出区名/街道名」的记录数:一行话,不给条形、不给占比。
*
* 为什么到这里为止不再画条:这一档和上面的名次不同量。它的长短由地址填写质量决定,
* 跟单个区、单条街道放进同一把尺子,要么把确认项压成看不出长短的一截(按它归一),
* 要么画到封顶和榜首一样长(按榜首归一)—— 两种都会让人怀疑数据出错。
* 起数必须留着(量不能没有下落,否则短榜会被读成「全市就这几处」),
* 但比较只留给榜内。虚线 + 降到 text-3 表示它在榜外,不是第 N 名:
* 排名色一次都不出现,避免同一套编码被读成名次。
*/
.hm-splitbar__unresolved {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-top: 4px;
padding-top: 10px;
border-top: 1px dashed var(--hm-divider);
font-size: 12px;
color: var(--hm-text-3);
}
.hm-splitbar__unresolved b {
color: var(--hm-text-2);
font-weight: 500;
font-variant-numeric: tabular-nums;
flex: 0 0 auto;
}
.hm-splitbar__unresolved i {
font-style: normal;
font-weight: 400;
font-size: 11px;
color: var(--hm-text-3);
margin-left: 2px;
}
/* 抽屉里的表下面没有榜上那圈留白,虚线要自己撑开一点,才不像紧贴着表格最后一行 */
.hm-splitbar__unresolved--drawer {
margin-top: 14px;
padding-top: 12px;
font-size: 12.5px;
}
/*
* 「地址里读不出区名/街道名」那一档也能点:它背后确实有一批案件,只是归不到某个地名上。
* 虚线是这一档「在榜外」的身份标记,接成按钮时四边默认描边去掉、上边这条留着;
* 内衬只往左右和下面撑,padding-top 交给上面那条规则(榜单 10px / 抽屉 12px),
* 免得这里一个简写把抽屉里刻意放开的间距又收回去。
*/
.hm-splitbar__unresolved--link {
font: inherit;
text-align: left;
background: transparent;
border: 0;
border-top: 1px dashed var(--hm-divider);
padding-right: 6px;
padding-left: 6px;
padding-bottom: 4px;
border-radius: 0 0 7px 7px;
cursor: pointer;
transition: background 0.16s ease;
}
.hm-splitbar__unresolved--link:hover {
background: var(--hm-primary-wash);
}
/* 数字是这一档唯一的结论,hover 时提一级颜色,其余文字仍留在榜外的灰度里 */
.hm-splitbar__unresolved--link:hover b {
color: var(--hm-primary);
}
.hm-splitbar__unresolved--link:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* 「未标注行政区」这一档也能被选中。它自己的 --link 规则在文末把 background 设成透明,
单类比不过,这里用双类把它压回来,选中态才有底色。 */
.hm-splitbar__unresolved--link.hm-splitbar__row--active {
background: var(--hm-primary-wash);
}
.hm-splitbar__unresolved--link.hm-splitbar__row--active b {
color: var(--hm-primary);
}
/*
* 榜下的「查看全部」:文字按钮,不做成实心块。
* 两块榜(区域分布 / 高频街道)共用一个长相,桶卡底部那个「查看全部」也是它 ——
* 同一个动线(点开→右缘抽屉)就该是同一个入口样式。
*/
.hm-board__more {
display: flex;
justify-content: flex-end;
margin-top: 6px;
}
.hm-more {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 2px 4px;
border: none;
background: transparent;
color: var(--hm-primary);
font-size: 11px;
font-weight: 600;
cursor: pointer;
}
.hm-more:hover {
color: var(--hm-primary-hover);
text-decoration: underline;
}
/* 箭头比文字再小一号:入口的视觉重量留在文字上,图标只做方向提示 */
.hm-more .anticon {
font-size: 10px;
}
/* 抽屉表格里「与榜首相比」那一列的短条:和面板榜上的条形同一套尺寸,
只是这里长条换成 6px 高的定宽轨道(列宽写死在组件里) */
.hm-board__bar {
height: 6px;
border-radius: 3px;
background: var(--hm-divider);
overflow: hidden;
}
.hm-board__bar > div {
height: 100%;
border-radius: 3px;
}
/* --------------------------- 概览里的分类标题 --------------------------- */
/*
* 右栏现在挂了七块各自独立的榜(集中度、区域、时段形状、街道、道路、点位、时间),
* 标题都是一样大小的灰字,扫过去要先认出「这是哪一类」才能读下面的数 ——
* 所以每类标题前给一个固定小图标,让「类」在视觉上先立起来。
*
* 图标只做区分,不抢读数:尺寸跟正文一样(12px)、颜色是主色压淡,
* 榜上那些案件数、百分比仍然是行里最显眼的东西。这条规矩和黑点行里的数字高亮同一出处
* (见 .hm-hot__line em i:一个位置只留一个最要紧的读数,其余都给它让路)。
*/
.hm-sect {
display: flex;
align-items: center;
gap: 7px;
font-size: 13px;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-sect__ico {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 22px;
height: 22px;
border-radius: 6px;
background: var(--hm-primary-wash);
color: var(--hm-primary);
font-size: 12px;
line-height: 1;
}
/* 风险概览里每个「区块」(营运区分 / 集中程度 / 区域分布 / 时段形状 / 街道 / 道路 /
反复出险位置 / 车辆属性构成):一张与 .hm-hero 同款的实底卡片,叠在半透玻璃面板上
浮出层次,把零散的阅读块归拢成清晰的卡片阵列。标题(.hm-sect)是卡头,
自带图标 chip + 加粗文字;卡内顶部留白由 .hm-sect 的 marginBottom 承担。 */
.hm-sectcard {
background: var(--hm-surface);
border: 1px solid var(--hm-divider);
border-radius: var(--hm-radius);
padding: 13px 10px 14px;
margin-top: 6px;
}
/*
* 「在地图上看」:一张榜的入口,放在分类标题行右端(抽屉里放标题右侧)。
*
* 为什么不跟「查看全部」挤在同一行末尾:那两颗讲的是两件相反的事 —— 一颗把榜摊在屏幕上、
* 一颗把榜摊在抽屉里,同排就会读成「二选一」。标题行右端正好和标题自己对齐,
* 一眼就知道这颗管的是上面这张榜。
*
* 右栏净宽 372px,标题最长那行(「反复出险的位置(TOP 5)」)留出这颗还剩得下;
* 这颗因此不许换行、也不给图标,宽度全靠那五个字。
*
* 禁用态不消失、也不降透明度:它是「数据还没到 / 这一筛就没记录」的说明载体,
* 藏起来就等于让人以为入口没了(悬浮说明由外层 span 承担,禁用按钮自己不触发鼠标事件)。
*/
.hm-spot-entry-wrap {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
}
.hm-spot-entry-wrap--section {
margin-left: auto;
}
.hm-spot-entry {
padding: 2px 4px;
border: none;
background: transparent;
color: var(--hm-primary);
font-size: 11px;
font-weight: 600;
line-height: 1.4;
white-space: nowrap;
cursor: pointer;
}
.hm-spot-entry--board {
font-size: 12px;
}
.hm-spot-entry:hover:not(:disabled) {
color: var(--hm-primary-hover);
text-decoration: underline;
}
.hm-spot-entry:focus-visible {
outline: 1px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
.hm-spot-entry:disabled {
color: var(--hm-text-3);
cursor: not-allowed;
}
/* --------------------------- 区 × 时段(交叉表) --------------------------- */
/*
* 面板上的时段矩阵:一行一个区,六档时段 + 夜间占比。
*
* 为什么折成 6 档而不是直接画 24 格:右栏 372px,扣掉区名和夜间那一列只剩 ~250px,
* 24 格每格 10px,既写不下数字也读不出深浅 —— 那就不是图,是一片糊。
* 6 档一格 ~40px,数字放得下,深浅也比得出来(分档口径见 dims.ts 的 TIME_BANDS)。
* 完整的 24 格留给抽屉(.hm-matrix),那里最宽 560px、最窄 392px(宽度见
* src/layout/drawerWidth.ts),窄到格子读不出来时那张自己横向滚(见 .hm-matrix-scroll)。
*
* 底色走地图上那条「案件密度」色阶(越挤越往红),并按「本行自己的最大值」归一,
* 不是全表归一:这一张表比的是各区的时段形状,全表归一时案件少的区整行只剩色阶的冷端,
* 看着像「没时间特征」,而它只是量小。取色与字色都由 palette.ts 那两个函数给,
* 面板这张和抽屉那张 24 格矩阵共用一处逻辑,不会两边各一套红。
*
* 字色跟着底色的实际亮度翻:色阶的暖端是亮黄(深字对比 12:1,白字只有 1.3:1),
* 炽红端反过来(白字 4.6:1,深字 3.5:1),所以不能写死 —— 规则见 densityCellInk,
* 最低那一档也有约 4:1(钉在 palette.test.ts)。0 起那格不涂色阶,用分隔灰。
*/
.hm-cross,
.hm-matrix {
display: flex;
flex-direction: column;
gap: 3px;
}
.hm-cross__head,
.hm-cross__row {
display: grid;
grid-template-columns: 58px repeat(6, minmax(0, 1fr)) 42px;
gap: 3px;
align-items: center;
}
.hm-cross__head {
font-size: 10px;
color: var(--hm-text-3);
}
.hm-cross__band {
text-align: center;
white-space: nowrap;
}
.hm-cross__name {
font-size: 11px;
color: var(--hm-text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-cross__cell {
height: 22px;
min-width: 0;
padding: 0;
border: 0;
border-radius: 4px;
color: var(--hm-text-1);
font-size: 11px;
font-variant-numeric: tabular-nums;
cursor: pointer;
transition: box-shadow 0.14s ease;
}
/* 0 起那一格照画(形状不能缺口),但它后面没有名单可看,所以只收掉指针与描边 */
.hm-cross__cell:disabled,
.hm-cross__cell.is-empty {
color: var(--hm-text-3);
cursor: default;
}
.hm-cross__cell:not(:disabled):hover {
box-shadow: inset 0 0 0 1.5px var(--hm-primary);
}
.hm-cross__cell:not(:disabled):focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
.hm-cross__night {
font-size: 11px;
color: var(--hm-text-2);
text-align: right;
font-variant-numeric: tabular-nums;
}
/* ------------------------- 反复出险的位置(点位榜) ------------------------- */
/*
* 一行一处位置:名次、位置串、天数/起数/跨度/近 30 天、末案日期。
*
* 与 .hm-splitbar 那些行的区别是它没有条形 —— 这一张榜的名次来自「出险天数」,
* 条形要画的长度和排名依据不是同一个量,画出来只会让人拿条去对名次。
* 天数直接写在最前面加粗,它就是这一行的尺子。
*/
.hm-place {
display: flex;
flex-direction: column;
gap: 2px;
}
.hm-place__row {
display: flex;
align-items: baseline;
gap: 8px;
width: 100%;
padding: 5px 6px;
margin: 0 -6px;
border: 0;
border-radius: 7px;
background: transparent;
font: inherit;
text-align: left;
cursor: pointer;
transition: background 0.16s ease;
}
.hm-place__row:hover {
background: var(--hm-primary-wash);
}
.hm-place__row:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
.hm-place__rank {
flex: 0 0 auto;
font-size: 11px;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
.hm-place__main {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.hm-place__name {
font-size: 12px;
color: var(--hm-text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-place__meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
font-size: 11px;
color: var(--hm-text-3);
}
.hm-place__meta b {
color: var(--hm-primary);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.hm-place__meta em {
font-style: normal;
font-variant-numeric: tabular-nums;
}
/* 末案日期单独靠右:一行里它是「这件事还新不新」的答案,跟左边的量不是同一件事 */
.hm-place__last {
margin-left: auto;
flex: 0 0 auto;
text-align: right;
font-size: 11px;
color: var(--hm-text-2);
font-variant-numeric: tabular-nums;
}
.hm-place__last em {
display: block;
font-style: normal;
font-size: 10px;
color: var(--hm-text-3);
}
/* ---------------------- 抽屉里的完整矩阵(区 × 24 小时) ---------------------- */
.hm-matrix__head,
.hm-matrix__row {
display: grid;
/* 区名 76(原来 96)、夜间 44(原来 52):抽屉变窄之后先收这两头的固定列,
24 格那一串是内容本身,能不动就不动 */
grid-template-columns: 76px repeat(24, minmax(0, 1fr)) 44px;
gap: 2px;
align-items: center;
}
/*
* 宽屏时矩阵整张铺得开(一格 20px 上下);抽屉窄到 392 那一档时一格只剩十来像素,
* 深浅还是深浅,但「哪一格是本区的高峰」已经读不出来了 —— 而这张表读的就是形状。
* 所以给它一条横向滚的退路:格子守住 16px 以上的可辨识度,超出的部分横向移动,
* 竖向滚动仍然只有抽屉 body 那一条(口径同时间分布抽屉那段注释)。
*/
.hm-matrix-scroll {
overflow-x: auto;
padding-bottom: 4px;
}
.hm-matrix-scroll .hm-matrix {
min-width: 560px;
}
.hm-matrix__hour {
font-size: 9px;
color: var(--hm-text-3);
text-align: center;
font-variant-numeric: tabular-nums;
}
.hm-matrix__name {
font-size: 12px;
color: var(--hm-text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-matrix__cell {
height: 20px;
min-width: 0;
padding: 0;
border: 0;
border-radius: 3px;
background: transparent;
cursor: pointer;
transition: box-shadow 0.14s ease;
}
.hm-matrix__cell:disabled {
cursor: default;
}
.hm-matrix__cell:not(:disabled):hover {
box-shadow: inset 0 0 0 1.5px var(--hm-primary);
}
.hm-matrix__cell:not(:disabled):focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* 表末那一行合计:底色留着,说明它是全部区加起来的时段形状,不是又一个区 */
.hm-matrix__row--total {
margin-top: 4px;
padding-top: 5px;
border-top: 1px solid var(--hm-divider);
}
.hm-matrix__row--total .hm-matrix__name {
color: var(--hm-text-1);
font-weight: 600;
}
.hm-splitbar__empty {
font-size: 12px;
color: var(--hm-text-3);
text-align: center;
padding: 12px 0;
}
/* ------------------------------- Empty ------------------------------- */
.hm-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
padding: 28px 12px;
color: var(--hm-text-3);
text-align: center;
}
.hm-empty--compact {
padding: 14px 8px;
}
.hm-empty__icon {
opacity: 0.4;
}
.hm-empty__title {
font-size: 13px;
color: var(--hm-text-2);
}
.hm-empty__desc {
font-size: 11px;
line-height: 1.6;
max-width: 260px;
}
/* ------------------------------- 布局壳 ------------------------------- */
.hm-app {
display: flex;
flex-direction: column;
height: 100vh;
min-height: 0;
overflow: hidden;
}
.hm-header {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: var(--hm-header-h);
padding: 0 18px;
background: var(--hm-glass-header);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
position: relative;
z-index: 30;
box-shadow: 0 6px 24px -12px rgba(16, 24, 40, 0.5);
}
/* 底缘左段那一截渐变线:登录卡顶缘「接入」线的同款,压住顶栏下边。
只做 240px 短的一截再向右淡出 —— 整条实线会跟 border-bottom 抢,读成两条平行线。 */
.hm-header::after {
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 240px;
height: 2px;
border-radius: 0 2px 2px 0;
background: linear-gradient(
90deg,
var(--hm-primary) 0%,
var(--hm-accent-cyan) 62%,
transparent 100%
);
pointer-events: none;
}
/* 深底顶栏内的文字统一转亮,保证在毛玻璃之上的可读性 */
.hm-header .hm-brand__title {
color: #f4f6ff;
/* 与登录页同一笔字距(那边 2px,顶栏窄、收一点):品牌名拉开后,
深玻璃顶栏读起来更像一块铭牌,而不是页面上随意的一行字。 */
letter-spacing: 1.4px;
}
.hm-header .hm-brand__subtitle {
color: rgba(226, 232, 255, 0.62);
}
.hm-header__left {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
}
/* 品牌与项目标题之间的测距线:一枚金色准星压在两段细线当中。
*
* 登录页标题前那枚十字标的同族,这里换成横向读法:横线由中间的金色向两侧淡出,
* 竖痕只留准星那 9px。全页只有这一处金色记号,与品牌标记右下角那个点位点同一个意思。 */
.hm-header__axis {
position: relative;
flex: 0 0 auto;
width: 46px;
height: 13px;
}
.hm-header__axis::before {
content: '';
position: absolute;
top: 6px;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(
90deg,
transparent,
rgba(203, 214, 245, 0.34) 28%,
rgba(252, 201, 41, 0.85) 50%,
rgba(203, 214, 245, 0.34) 72%,
transparent
);
}
.hm-header__axis::after {
content: '';
position: absolute;
top: 2px;
left: 22.5px;
width: 1px;
height: 9px;
background: rgba(252, 201, 41, 0.9);
box-shadow: 0 0 10px rgba(252, 201, 41, 0.5);
}
.hm-header__context {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.hm-header__context-title {
font-size: 14px;
font-weight: 600;
color: #f4f6ff;
white-space: nowrap;
}
.hm-header__context-sub {
font-size: 11px;
color: rgba(226, 232, 255, 0.7);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hm-header__right {
display: flex;
align-items: center;
gap: 10px;
flex: 0 0 auto;
}
/* 深色玻璃顶栏里的图标按钮:亮色描边胶囊,hover 提亮 */
.hm-header .hm-header__icon-btn {
color: rgba(232, 237, 255, 0.85);
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 8px;
}
.hm-header .hm-header__icon-btn:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.22) !important;
border-color: rgba(255, 255, 255, 0.4) !important;
}
/* 导入按钮带文字,比纯图标按钮留更多左右内距 */
.hm-header .hm-header__import-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0 12px;
height: 30px;
font-weight: 600;
}
/* ---------------------------------------------------------------------------
导入预览报告
---------------------------------------------------------------------------
三段式:摘要(一行大数)→ 自动判定(一行一类)→ 可选剔除(默认折叠)。
判定依据不再逐行摊开念:行内按剩余宽度截断,完整版与样例折进 ⓘ 气泡。
这段话只在「要复核这一类的判据」时才需要读全,平时摊开会把弹窗撑到两屏高 ——
需要逐条核对时还有导出的剔除清单 CSV,那里一条都不少。
--------------------------------------------------------------------------- */
.hm-import-report {
display: flex;
flex-direction: column;
gap: 12px;
padding: 2px;
}
/* ---------- 摘要:原始 → 入库 的大数,以及剔除 / 拒收两枚计数 ---------- */
.hm-ic__summary {
display: flex;
flex-direction: column;
gap: 4px;
padding: 10px 12px;
border-radius: 10px;
background: rgba(240, 244, 255, 0.7);
border: 1px solid var(--hm-glass-border);
}
.hm-ic__flow {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.hm-ic__flow-label {
font-size: 12px;
color: var(--hm-text-3);
}
.hm-ic__flow-num {
font-size: 22px;
font-weight: 700;
line-height: 1.1;
color: var(--hm-text-2);
font-variant-numeric: tabular-nums;
}
.hm-ic__flow-num--kept {
color: var(--hm-primary);
}
.hm-ic__flow-arrow {
font-size: 14px;
color: var(--hm-text-3);
margin: 0 2px;
}
.hm-ic__chip {
margin-left: auto;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
background: rgba(0, 0, 0, 0.04);
border: 1px solid var(--hm-divider);
}
.hm-ic__chip[data-on='1'] {
color: #d4380d;
background: rgba(212, 56, 13, 0.08);
border-color: rgba(212, 56, 13, 0.24);
}
.hm-ic__chip--muted {
margin-left: 0;
}
.hm-ic__sub {
font-size: 11px;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
/* ---------- 分组骨架 ---------- */
.hm-ic__sec {
display: flex;
flex-direction: column;
gap: 6px;
}
.hm-ic__sec-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
.hm-ic__sec-title {
font-size: 12px;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-ic__sec-total {
font-size: 11px;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
.hm-ic__sec-note {
font-size: 11px;
color: var(--hm-warn);
}
/* ------------------- 车辆属性三列的取数来源(导入报告里那一块) ------------------- */
/*
* 一行一列:维度名 / 取自哪个表头 / 那一列的取值。
* 取值那块允许换行 —— 「6 种」后面可能要挂 6 个取值,一行放不下的就掉到第二行,
* 不截断也不省略号:这一块的全部意义就是让人看全它到底有哪些字。
*/
.hm-ic__src {
display: flex;
flex-direction: column;
border: 1px solid var(--hm-divider);
border-radius: 6px;
overflow: hidden;
}
.hm-ic__src-row {
display: grid;
grid-template-columns: 72px 116px minmax(0, 1fr);
gap: 10px;
align-items: baseline;
padding: 7px 8px;
font-size: 12px;
color: var(--hm-text-2);
}
.hm-ic__src-row + .hm-ic__src-row {
border-top: 1px solid var(--hm-divider);
}
.hm-ic__src-dim {
color: var(--hm-text-1);
}
/* 表头原文用等宽类字形读起来像「字段名」,不是一句话 */
.hm-ic__src-col {
color: var(--hm-text-3);
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-ic__src-col.is-empty {
color: var(--hm-warn);
}
.hm-ic__src-vals {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 10px;
font-size: 11px;
color: var(--hm-text-3);
}
.hm-ic__src-vals b {
font-weight: 500;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
.hm-ic__src-val {
color: var(--hm-text-2);
white-space: nowrap;
}
.hm-ic__src-val i {
margin-left: 4px;
font-style: normal;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
.hm-ic__src-val--muted {
color: var(--hm-text-3);
}
/** 常显的判定口径:灰字说明,别用警示色,否则每次打开都像出了错 */
.hm-ic__sec-hint {
font-size: 11px;
line-height: 1.5;
color: var(--hm-text-3);
}
/** 折叠头整行可点 —— 只让箭头可点的话命中区太小 */
.hm-ic__sec-toggle {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 0;
border: 0;
background: none;
cursor: pointer;
text-align: left;
color: inherit;
font: inherit;
}
.hm-ic__sec-toggle .anticon {
font-size: 10px;
color: var(--hm-text-3);
}
.hm-ic__sec-badge {
margin-left: auto;
font-size: 11px;
color: var(--hm-text-3);
}
.hm-ic__sec-badge[data-on='1'] {
color: var(--hm-primary);
font-weight: 600;
}
/* ---------- 自动判定:一行一类,整块包一层边框 ---------- */
.hm-ic__rows {
display: flex;
flex-direction: column;
border: 1px solid var(--hm-divider);
border-radius: 8px;
overflow: hidden;
}
/**
* 五列:控件 / 类名 / 判定依据(吃掉剩余宽度并截断)/ 条数 / ⓘ。
* 依据列给 minmax(0, 1fr) 而不是 auto —— auto 会为了放完整句把前面几列挤扁。
*/
.hm-ic__row {
display: grid;
grid-template-columns: 20px auto minmax(0, 1fr) 52px 18px;
align-items: center;
gap: 8px;
height: 32px;
padding: 0 8px;
font-size: 12px;
color: var(--hm-text-2);
background: rgba(255, 255, 255, 0.5);
}
.hm-ic__row + .hm-ic__row {
border-top: 1px solid var(--hm-divider);
}
/** 0 条的那一类淡掉:留着是为了口径完整(换一批数据它就可能不是 0) */
.hm-ic__row[data-zero='1'] {
opacity: 0.5;
}
.hm-ic__lock {
font-size: 12px;
color: var(--hm-text-3);
}
.hm-ic__row-label {
color: var(--hm-text-1);
white-space: nowrap;
}
.hm-ic__row-reason {
font-size: 11px;
color: var(--hm-text-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hm-ic__row-count {
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
/** 默认勾选剔除的行:左侧金条 + 浅金底,整行比其余类更跳 */
.hm-ic__row[data-default='1'] {
background: rgba(252, 201, 41, 0.12);
box-shadow: inset 3px 0 0 var(--hm-accent-gold-deep);
}
/** 「默认剔除」徽标:金色胶囊,提示这条默认就被剔、可取消 */
.hm-ic__row-badge {
display: inline-block;
margin-left: 6px;
padding: 1px 6px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
line-height: 1.5;
letter-spacing: 0.5px;
color: #6b4e00;
background: var(--hm-accent-gold);
white-space: nowrap;
cursor: help;
vertical-align: middle;
}
.hm-ic__row-badge:hover {
background: var(--hm-accent-gold-deep);
color: #fff;
}
.hm-ic__info {
font-size: 12px;
color: var(--hm-text-3);
cursor: help;
}
.hm-ic__info:hover {
color: var(--hm-primary);
}
.hm-ic__muted {
color: var(--hm-text-3);
}
/* ---------- 可选剔除:两列网格,标签列自动对齐 ---------- */
.hm-ic__opt {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 8px 10px;
padding: 10px 12px;
border: 1px solid var(--hm-divider);
border-radius: 8px;
font-size: 12px;
}
.hm-ic__opt-label {
color: var(--hm-text-1);
white-space: nowrap;
}
.hm-ic__opt-ctrl {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
color: var(--hm-text-2);
}
.hm-ic__opt-text {
display: inline-flex;
align-items: center;
gap: 4px;
}
.hm-ic__opt-text b {
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
.hm-ic__num {
width: 64px;
}
.hm-ic__opt-warn {
grid-column: 1 / -1;
padding: 6px 8px;
border-radius: 6px;
font-size: 11px;
line-height: 1.6;
color: var(--hm-warn);
background: rgba(217, 119, 6, 0.1);
border: 1px solid rgba(217, 119, 6, 0.28);
}
/* ---------- 收尾 ---------- */
.hm-ic__foot {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
padding-top: 2px;
}
.hm-ic__note {
font-size: 11px;
color: var(--hm-text-3);
}
/* ---------- ⓘ 气泡:判定依据全文 + 样例 ---------- */
.hm-ic__popover {
max-width: 380px;
}
.hm-ic__pop {
display: flex;
flex-direction: column;
gap: 6px;
max-width: 336px;
}
/**
* F 类的气泡里带换行(先说判定依据,再另起一行念「半径比阈值更决定剔多少」)。
* HTML 会把 \n 折叠成空格,得显式留白。
*/
.hm-ic__pop-reason {
font-size: 12px;
line-height: 1.6;
color: var(--hm-text-2);
white-space: pre-line;
}
.hm-ic__pop-title {
padding-top: 6px;
border-top: 1px dashed var(--hm-divider);
font-size: 11px;
font-weight: 600;
color: var(--hm-text-3);
}
.hm-ic__pop-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.hm-ic__pop-item {
padding: 6px 8px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.03);
}
.hm-ic__pop-addr {
font-size: 12px;
line-height: 1.4;
color: var(--hm-text-1);
word-break: break-all;
}
.hm-ic__pop-note {
margin-top: 2px;
font-size: 11px;
line-height: 1.5;
color: var(--hm-text-3);
}
/* 顶栏内的小胶囊改为半透明亮色,贴合深色玻璃背景 */
.hm-header .hm-map__stat-chip {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.22);
color: rgba(232, 237, 255, 0.82);
box-shadow: none;
}
.hm-header .hm-map__stat-chip b {
color: #ffffff;
}
.hm-body {
position: relative;
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
z-index: 10;
/* 操作区展开时被占掉的横向宽度。地图上的浮层统一按它避让:
收起时归零,浮层滑回视口边,展开时再让开。 */
--hm-rail-inset: 0px;
}
.hm-body.is-rail-open {
--hm-rail-inset: var(--hm-rail-right);
}
/* ------------------------- 右侧操作区:竖向页签 + 单面板 ------------------------- */
/* 把手条常驻右缘,面板收起时只剩它,地图占满其余空间。
*
* 标签用 writing-mode: vertical-rl 竖排:46px 宽的把手里横排放不下
* 「筛选与图层」五个字,截断或缩字号都会掉可读性,而中文本来就是可以竖读的。 */
.hm-rail-tabs {
position: absolute;
right: var(--hm-rail-gap);
top: 50%;
transform: translateY(-50%);
z-index: 17;
display: flex;
flex-direction: column;
gap: 8px;
}
.hm-rail-tab {
display: flex;
flex-direction: column;
align-items: center;
gap: 9px;
width: var(--hm-tab-w);
padding: 12px 0 14px;
font: inherit;
color: var(--hm-text-2);
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
cursor: pointer;
transition:
color 0.15s ease,
background 0.15s ease,
transform 0.18s ease,
box-shadow 0.18s ease;
}
.hm-rail-tab:hover {
color: var(--hm-primary);
background: var(--hm-glass-side-strong);
transform: translateX(-2px);
}
.hm-rail-tab:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
.hm-rail-tab__icon {
font-size: 15px;
line-height: 1;
}
.hm-rail-tab__label {
writing-mode: vertical-rl;
font-size: 12.5px;
font-weight: 600;
line-height: 1;
letter-spacing: 2px;
}
/* 选中态:品牌色实心,右侧圆角抹平,和拉出的面板连成同一块东西 */
.hm-rail-tab.is-active {
color: #ffffff;
background: linear-gradient(180deg, var(--hm-primary) 0%, var(--hm-primary-deep) 100%);
border-color: transparent;
box-shadow: 0 10px 26px -10px rgba(34, 43, 95, 0.6);
}
.hm-rail-tab.is-active:hover {
color: #ffffff;
transform: none;
}
/* 面板容器:贴在把手条左侧,收起时整块滑出视口右缘 */
.hm-rail {
position: absolute;
top: var(--hm-rail-gap);
bottom: var(--hm-rail-gap);
right: calc(var(--hm-rail-gap) + var(--hm-tab-w) + 10px);
/* 不许越过左缘:窄窗口里 372px 是「设计宽度」而不是硬约束,
溢出到视口外会让面板左边(标题、参数名)永久看不见。 */
width: min(var(--hm-rail-right), calc(100vw - var(--hm-tab-w) - var(--hm-rail-gap) - 10px));
z-index: 16;
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 2px;
transform: translateX(calc(100% + var(--hm-tab-w) + var(--hm-rail-gap) * 3));
opacity: 0;
pointer-events: none;
transition:
transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.15s ease;
}
.hm-rail.is-open {
transform: none;
opacity: 1;
pointer-events: auto;
}
/* 面板之间切换:旧的一退、新的一进,分两步走(一次只挂一个面板,见 OperationRail)。
*
* 退场 110ms 往把手方向滑走,进场 150ms 从同一侧滑入 —— 一共 260ms,
* 比原来「瞬间换页」有了交代,又还没长到要点完等一下。再往上加就纯属拖沓了。
*
* 进场动画挂在面板自己身上:挂载即播,所以首次展开和切换后进场共用一条,
* 不用 JS 区分。SWAP_OUT_MS(TS)和这里的 0.11s 是一对,改一边必须改另一边。 */
@keyframes hm-panel-out {
from {
opacity: 1;
transform: none;
}
to {
opacity: 0;
transform: translateX(12px);
}
}
@keyframes hm-panel-in {
from {
opacity: 0;
transform: translateX(16px);
}
to {
opacity: 1;
transform: none;
}
}
.hm-rail > .hm-panel {
animation: hm-panel-in 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hm-rail.is-swapping > .hm-panel {
animation: hm-panel-out 0.11s ease-in both;
}
/* 左侧通栏:黑点降噪的产出(清单)单独占一缘。
*
* 原先它挂在右栏底部,于是「二十几行清单」和「四根滑杆」抢同一列高度:
* 想看排名得滚过长清单,想调强度得先滚回顶部,调完再滚下来核对 ——
* 一个本该 2 秒完成的循环要滚三次。拆成左产出 / 右旋钮后同屏互相看得见。
*
* 通栏(top/bottom 都钉住)而不是自适应高度:清单条数由「清单条数」滑杆决定,
* 高度跟着内容长会让左缘边界不停跳动;固定成一条,滚动的责任交给列表本身。
*
* 上下都钉到视口边(吃满整屏高度):底部原先让开 150px 给密度图例,等于为了一个
* 小卡片把清单截短一截。现在改成图例自己往右挪一列让位(见 .hm-body.is-dock-open
* .hm-map__legend),清单才拿得到它该要的整屏。 */
.hm-dock {
position: absolute;
top: var(--hm-rail-gap);
bottom: var(--hm-rail-gap);
left: var(--hm-rail-gap);
width: var(--hm-dock-w);
z-index: 16;
display: flex;
flex-direction: column;
min-height: 0;
transform: translateX(calc(-100% - var(--hm-rail-gap) * 2));
opacity: 0;
pointer-events: none;
transition:
transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
opacity 0.15s ease;
}
.hm-dock.is-open {
transform: none;
opacity: 1;
pointer-events: auto;
}
/* 面板吃满整栏高度,内部再让 .hm-hot 自己滚(滚动样式见 .hm-panel--fluid) */
.hm-dock > .hm-panel--fluid {
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
}
/*
* 清单收起来之后贴在屏幕左缘的那条把手。
*
* 它只在「本该有清单、却被它那颗收起收了」的时候出现(见 OperationRail 的条件),
* 平时不往屏上加一颗没用的东西。位置钉在竖向中间:清单通栏本来就吃满整屏,
* 回来时从同一头滑出最合手,也不会和左下的密度图例抢地方。
*/
.hm-dock-handle {
position: absolute;
left: var(--hm-rail-gap);
top: 50%;
transform: translateY(-50%);
z-index: 16;
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 11px;
font: inherit;
font-size: 12px;
color: var(--hm-text-2);
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
white-space: nowrap;
cursor: pointer;
transition:
color 0.15s ease,
background 0.15s ease,
transform 0.18s ease;
}
.hm-dock-handle:hover {
color: var(--hm-primary);
background: var(--hm-glass-side-strong);
transform: translate(2px, -50%);
}
.hm-dock-handle:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
/* 尖角朝右:这一按是把清单从左边往屏内拉出来 */
.hm-dock-handle__chev {
width: 5px;
height: 5px;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(-45deg);
}
/* 栏内子项默认不许被压扁 ——「内容不见了却没有滚动条」的根因。
*
* flex 项的 flex-shrink 默认是 1:空间不够时浏览器选择把面板压矮,
* 而不是让内容溢出容器,于是外层 overflow-y:auto 永远判定「没有超出」,
* 滚动条不出现;而 .hm-panel 为了圆角设了 overflow:hidden,被压掉的那段
* 内容就被直接裁掉。关掉压缩后,超长的变成操作栏本身,滚动条自然出现在
* 该出现的位置。需要内滚的面板另用 .hm-panel--fluid 显式声明。 */
.hm-rail > * {
flex: 0 0 auto;
}
/* ------------------------------- 地图区 ------------------------------- */
.hm-map {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
min-height: 0;
border: none;
border-radius: 0;
background: var(--hm-surface);
box-shadow: none;
}
.hm-map__canvas {
width: 100%;
height: 100%;
}
/**
* 鼠标停在可点目标(数字桶 / 黑点 / 聚焦形状 / 定位卡关闭叉)上时的手型提示。
*
* 自绘图层是 pointer-events: none 的画布,底图不知道上面画了数字还是圆圈,
* 光标默认一直是它的抓地手势 —— 人看不出这里能点开明细。判据与 click 同源(hitTest)。
*
* 必须带 `*` 与 !important:百度 / 高德会往容器里插自己的 DOM,内部元素自己声明了 cursor,
* 只写在 .hm-map__canvas 上会被盖掉。这一支只作用于底图容器内部,图例、工具条、
* 清单胶囊是它的兄弟节点,不受影响 —— 它们各有自己的光标口径。
*
* class 由 MapStage 的 hover effect 在「命中 / 未命中 / 拖动中」之间切换;拖动期间摘掉,
* 让底图的 grab/grabbing 正常显示,否则「这里能点」的小手会让人以为地图拖不动。
*/
.hm-map__canvas.is-pointing,
.hm-map__canvas.is-pointing * {
cursor: pointer !important;
}
.hm-map__overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(245, 246, 249, 0.72);
backdrop-filter: blur(2px);
z-index: 30;
}
/*
* 密度图例的宽度是确定的:文案行有 max-width 180,加 12×2 内边距 + 1×2 边框 = 206px,
* 不随文案长短晃 —— 下面所有让位阈值都按这个 206 算。
*/
.hm-map__legend {
position: absolute;
/* 常驻左缘;清单通栏拉开时往右挪一列,具体见下面 .hm-body.is-dock-open 的三段。
这里一度反对往右躲:曾经挪 388px 结果在 884~1050px 压到右栏(实测重叠 172px),
于是改成让清单自己缩短。现在清单要吃满整屏高度,躲的责任只能回到图例身上 ——
那段让不开的区间靠「窄到塞不下就收起浮层」的老规矩兜住,同样是纯 CSS 判定。 */
left: calc(var(--hm-rail-gap) + 2px);
bottom: var(--hm-rail-gap);
z-index: 12;
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px;
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
/* 跟清单同速:清单已经到位、图例还在慢慢挪,看着散 */
transition:
left 0.22s cubic-bezier(0.22, 1, 0.36, 1),
bottom 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 标题行左右分栏:左边讲口径,右边那颗收整张图例。
图例总宽仍按 206 那一套算(色阶 168 与说明 180 谁长听谁的),
这一行最宽只到 180 出头,不会因为多了一颗按钮就把下面的让位阈值重核一遍。 */
.hm-map__legend-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.hm-map__legend-title {
font-size: 11px;
font-weight: 600;
color: var(--hm-text-2);
letter-spacing: 0.3px;
}
.hm-map__legend-bar {
width: 168px;
height: 9px;
border-radius: 5px;
background: linear-gradient(
90deg,
#2b4ac7 0%,
#18a8ff 20%,
#00e0ce 38%,
#7ade3c 52%,
#ffce00 66%,
#ff7600 80%,
#ff2a2a 90%,
#e2004a 100%
);
}
.hm-map__legend-scale {
display: flex;
justify-content: space-between;
font-size: 10px;
color: var(--hm-text-3);
margin-top: -2px;
}
.hm-map__legend-hint {
font-size: 10px;
color: var(--hm-text-3);
line-height: 1.5;
max-width: 180px;
}
/*
* 密度卡底部的热力读数:原先是右下角独立的一颗胶囊,现在并进同一张卡。
* 用 flex-wrap 而不是 nowrap:卡片宽度被 180 的文案行钉住,多一行读数不能把卡撑宽,
* 否则下面那几档让位阈值(206 那一套)要全部重核。
*/
.hm-map__legend-stats {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px 10px;
max-width: 180px;
padding-top: 7px;
border-top: 1px solid var(--hm-divider);
font-size: 10px;
line-height: 1.5;
color: var(--hm-text-3);
}
.hm-map__legend-stats b {
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--hm-text-2);
}
/* 方格清单入口:标准文本按钮,纯文字主色,不另加图标或底色 */
.hm-map__legend-link {
margin: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
color: var(--hm-primary);
cursor: pointer;
}
.hm-map__legend-link:hover:not(:disabled) {
text-decoration: underline;
}
.hm-map__legend-link:disabled {
color: var(--hm-text-3);
cursor: default;
}
/*
* 清单通栏拉开后,密度图例的三档让位。
*
* 挪去的落点是固定的一个值:16 + 372 + 16 = 404(清单右缘外一格里)。不做成
* 「贴着清单右缘流式跟随」,因为那样图例会在拖动窗口的过程里一路横着追清单,
* 而它需要的只是「别压在清单身上」,不是「跟着清单走」。
* 图例恒定 206 宽 → 右缘落在 610,下面两条阈值都由这个 610 推出来。
*
* 每一段都同时写给整张图例和收成小牌的那一枚:它们是同一块东西的两种形态,
* 只让位给展开态的话,收起之后小牌还压在清单底下 —— 而收起本来就是为了让开位置。
*/
@media (min-width: 1081px) {
.hm-body.is-dock-open .hm-map__legend,
.hm-body.is-dock-open .hm-map__legend-chip {
left: calc(var(--hm-rail-gap) * 2 + var(--hm-dock-w));
}
}
/* 833~1080:这一列要躲右栏左缘(vw − 444)。610 + 8 ≤ vw − 444 要 vw ≥ 1062,
* 阈值取整到 RAIL_MIN_WIDTH=1080 —— 1062~1080 本来只有用户强开右栏才存在,
* 让它跟着自动收起线走,两条线不会各说各话。
*
* 这一段是「清单 + 右栏都开着、中间那条缝塞不下图例」,所以收起浮层。图例只是
* 口径说明,同样内容在右栏里也写着,收掉不丢信息。
* 833 以下不用处理:清单本来就显示不出来(见文末 max-width:832 的退路)。 */
@media (min-width: 833px) and (max-width: 1080px) {
.hm-body.is-dock-open .hm-map__legend,
.hm-body.is-dock-open .hm-map__legend-chip {
display: none;
}
}
/* 右下那颗读数胶囊并进密度卡之后,原来「1141~1380 把图例抬一行给它让位」的整段
* 不再需要:底缘现在只剩图例这一块浮层,直接贴回 --hm-rail-gap。 */
.hm-map__toolbar {
position: absolute;
right: calc(var(--hm-rail-gap) + var(--hm-tab-w) + var(--hm-rail-inset) + 10px);
top: var(--hm-rail-gap);
z-index: 12;
/* 跟右栏同速:浮层慢半拍会在面板已经到位后还在往右滑,看着散 */
transition: right 0.22s cubic-bezier(0.22, 1, 0.36, 1);
display: flex;
flex-direction: column;
gap: 8px;
align-items: flex-end;
}
.hm-map__stat-chip {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: 999px;
box-shadow: var(--hm-glass-shadow);
font-size: 11px;
color: var(--hm-text-2);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
white-space: nowrap;
}
/*
* 收窄状态:不再是单独一颗牌子,而是同一条读数胶囊左端的一段。
*
* 底色换品牌浅洗、圆点换主色 —— 它仍是「临时改了屏上这批点」的状态,不是又一个读数;
* 后面接一条竖分隔线,把状态段与「命中 / 点位 / 耗时」那三格读数分开。
* 状态段自带两颗按钮(清单 / ✕),退出口必须跟着状态走,不能让人去别处找路回来。
*
* 合并后这条会比原来只报读数时长,所以给它一个随视口收缩的上限;名字先让位
* (flex + ellipsis),读数三格不参与收缩 —— 让位阈值(760 / 974 / 1140)因此不必重核。
*/
.hm-map__toolbar > .hm-map__stat-chip {
max-width: min(560px, calc(100vw - 480px));
}
.hm-map__stat-chip--scoped {
background: var(--hm-primary-wash-strong);
border-color: var(--hm-primary-wash-strong);
color: var(--hm-text-1);
}
/* 特异性压过后面 .hm-map__stat-chip .dot 那支青色:收窄状态用主色圆点 */
.hm-map__stat-chip.hm-map__stat-chip--scoped .dot {
background: var(--hm-primary);
}
/* 名字可能很长(街道名 + 路名):先收缩、到顶截断,整条胶囊不跟着撑到出屏 */
.hm-map__scope-label {
flex: 0 1 auto;
min-width: 0;
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
}
.hm-map__chip-sep {
flex: none;
width: 1px;
height: 12px;
background: var(--hm-primary-line, rgba(70, 83, 162, 0.28));
}
.hm-map__scope-btn,
.hm-map__scope-exit {
padding: 0;
font: inherit;
background: none;
border: 0;
cursor: pointer;
}
.hm-map__scope-btn {
color: var(--hm-primary);
}
.hm-map__scope-exit {
color: var(--hm-text-3);
font-size: 12px;
line-height: 1;
}
.hm-map__scope-btn:hover,
.hm-map__scope-exit:hover {
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.hm-map__scope-btn:focus-visible,
.hm-map__scope-exit:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 3px;
border-radius: 3px;
}
.hm-map__stat-chip b {
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
/*
* 工具条里可点的两块读数(命中 / 点位)。
*
* 做成按钮但长得和原来的纯文字一模一样:不加内衬、不改字号,字间距靠和胶囊同样的 8px 间隙,
* 所以工具条的实测宽度没有变化(design.css 上面写着的让位阈值 760 / 1140 不必重核)。
* 可点暗示与风险概览的读数块同一套做法:hover 时数字下一条虚线、字色转主题色。
*/
.hm-map__stat-link {
display: flex;
/* 收窄状态下状态段已经占了宽度,三格读数不参与收缩,先让 scope 名字让位 */
flex: none;
align-items: baseline;
gap: 8px;
padding: 0;
font: inherit;
color: inherit;
background: none;
border: 0;
white-space: nowrap;
cursor: pointer;
}
.hm-map__stat-link:hover:not(:disabled) {
color: var(--hm-primary);
}
.hm-map__stat-link:hover:not(:disabled) b {
color: var(--hm-primary);
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.hm-map__stat-link:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 3px;
border-radius: 4px;
}
/* 0 处的点位没有格子可列,按钮留着但收掉手的形状:读数本身还是要看得见 */
.hm-map__stat-link:disabled {
cursor: default;
color: var(--hm-text-3);
}
.hm-map__stat-link:disabled b {
color: var(--hm-text-3);
}
/*
* 聚焦期间工具条那一截:来源 + 退出。
*
* 来源那一串(例如「高频街道 · 榜单前 6 条街道」)比原来的三个读数长,而整句都该看得见,
* 所以给它一个上限宽度并截断 —— 完整一句在悬停里,退出这一动作留在屏上直接点得到。
* 上限按「整颗胶囊不比原来那颗宽」来定:design.css 里那几段让位阈值(760 / 974 / 1140 / 1380)
* 都是照工具条实测 277px 算的,聚焦这一截要是更宽,那些阈值就得全部重核一遍。
*/
.hm-map__focus-label {
max-width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--hm-text-1);
}
/* 退出按钮与那两块可点读数同一套长相:不加内衬、不改字号,只在 hover 时给虚线下划线 */
.hm-map__focus-exit {
padding: 0;
font: inherit;
color: var(--hm-primary);
background: none;
border: 0;
white-space: nowrap;
cursor: pointer;
}
.hm-map__focus-exit:hover {
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.hm-map__focus-exit:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 3px;
border-radius: 4px;
}
/* 右下角那颗独立读数胶囊已并入密度卡(见 .hm-map__legend-stats),
* 底缘现在只剩左下角图例这一块浮层,原先为它算的 974 / 1380 两档让位一并撤掉。 */
/* 两栏都拉开时,中间只剩一条缝,工具条没地方站。
*
* 左清单 372 + 右面板连把手 444 = 832,工具条会从右栏左边一路伸进清单底下
* (实测 900px 下 toolbar 左缘 182、清单右缘 388,被 z-index 更高的清单压掉一半),
* 读不清也点不到。
*
* 清单只在「黑点降噪」开着时出现,而这个宽度区间本来就窄于 RAIL_MIN_WIDTH=1080
* 的自动收起线 —— 也就是说只有用户手动强开才会撞上,此时让面板说话。
* 图例在这个区间另有安排:它要往右挪一列才躲得开吃满整屏的清单,见上面
* .hm-body.is-dock-open 那三段。 */
@media (max-width: 1140px) {
.hm-body.is-dock-open .hm-map__toolbar {
display: none;
}
}
/* 更窄时连右上工具条也没地方放了:常态实测 277px(合并后收窄时由 max-width 收缩),
要让开 444+277+8 = 729px,
* 低于这个宽度会整块掉到视口外(实测 531px 下 x=-187,「回到全市」点不到)。
*
* 试过把它挪到左上角:面板左缘在 vw-444,工具条要 290px 才放得下,也就是
* vw ≥ 734 才成立 —— 和它需要被挪走的条件(vw < 729)互斥。
* 这个尺寸下两边本来就放不下,硬挪只会从「掉出视口」变成「压在面板底下」,
* 而 z-index 更低的浮层被压住等于点不到。所以让面板说话、浮层整体收起:
* 关掉页签它们就回来,比留一个摸不着的按钮诚实。阈值留到 760 取整。 */
@media (max-width: 760px) {
.hm-body.is-rail-open .hm-map__toolbar,
.hm-body.is-rail-open .hm-map__legend,
.hm-body.is-rail-open .hm-map__legend-chip {
display: none;
}
}
/* 左侧通栏的退路:清单 372 + 右栏连把手 444,窄于 ~832px 两栏就会叠在一起。
* 叠了之后中间也夹不出能看的地图,所以这种尺寸下保住右栏(开关和滑杆都在那儿),
* 清单收起。图例不用跟着动:清单没了它就没有要躲的东西,退回常驻左缘即可
* (上面那三段 .hm-body.is-dock-open 规则都带 min-width:833,正是为了这条线)。 */
@media (max-width: 832px) {
.hm-dock {
display: none;
}
}
.hm-map__stat-chip .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--hm-accent-cyan);
}
/* ------------------------------- 桶弹窗 ------------------------------- */
.hm-bucket-card {
position: absolute;
z-index: 40;
width: 328px;
background: var(--hm-glass-side);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius-lg);
box-shadow: var(--hm-glass-shadow);
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
overflow: hidden;
animation: hm-pop 0.16s ease-out;
}
@keyframes hm-pop {
from {
opacity: 0;
transform: translateY(4px) scale(0.985);
}
to {
opacity: 1;
transform: none;
}
}
.hm-bucket-card__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
background: linear-gradient(135deg, rgba(48, 58, 124, 0.94) 0%, rgba(70, 83, 162, 0.88) 100%);
border-bottom: 1px solid var(--hm-glass-border);
color: #fff;
}
/* 头部数字加一层极淡投影:半透明玻璃底下,白字在亮色热力/浅色底图上更稳 */
.hm-bucket-card__count {
display: flex;
align-items: baseline;
gap: 5px;
font-size: 18px;
font-weight: 700;
font-variant-numeric: tabular-nums;
/* 头部数字加一层极淡投影:半透明玻璃底下,白字在亮色热力/浅色底图上更稳 */
text-shadow: 0 1px 2px rgba(16, 24, 40, 0.4);
}
.hm-bucket-card__count span {
font-size: 11px;
font-weight: 400;
opacity: 0.85;
}
.hm-bucket-card__body {
padding: 10px 12px;
max-height: 268px;
overflow-y: auto;
}
.hm-bucket-card__row {
display: flex;
flex-direction: column;
gap: 2px;
padding: 7px 0;
border-bottom: 1px dashed var(--hm-divider);
}
.hm-bucket-card__row:last-child {
border-bottom: none;
}
.hm-bucket-card__row-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.hm-bucket-card__case {
font-size: 11px;
color: var(--hm-primary);
font-variant-numeric: tabular-nums;
letter-spacing: -0.1px;
}
.hm-bucket-card__time {
font-size: 10px;
color: var(--hm-text-3);
white-space: nowrap;
}
.hm-bucket-card__addr {
font-size: 11px;
color: var(--hm-text-2);
line-height: 1.5;
}
/* 明细卡里每一条多带的两项关键属性:营运区分(主色,最该先看到)+ 车种大类(弱一档)。
只放这两个,不堆使用性质 / 新能源 / 坐标等 —— 卡宽有限,挤下全部就等于全看不全。 */
.hm-bucket-card__attrs {
display: flex;
flex-wrap: wrap;
gap: 2px 8px;
margin-top: 1px;
}
.hm-bucket-card__attr {
font-size: 11px;
font-weight: 500;
color: var(--hm-primary);
}
.hm-bucket-card__attr--dim {
color: var(--hm-text-2);
font-weight: 400;
}
.hm-bucket-card__foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 12px;
border-top: 1px solid var(--hm-glass-border);
background: rgba(255, 255, 255, 0.4);
font-size: 11px;
color: var(--hm-text-3);
}
/* ------------------------------- 迷你图 ------------------------------- */
.hm-mini {
width: 100%;
display: block;
}
.hm-hist {
display: flex;
align-items: flex-end;
gap: 2px;
height: 62px;
}
.hm-hist__col {
flex: 1 1 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: 3px;
height: 100%;
cursor: default;
}
.hm-hist__bar {
width: 100%;
min-height: 2px;
border-radius: 2px 2px 0 0;
background: var(--hm-primary-soft);
transition: background 0.15s ease;
}
.hm-hist__col:hover .hm-hist__bar {
background: var(--hm-primary);
}
.hm-hist__col.is-peak .hm-hist__bar {
background: linear-gradient(180deg, var(--hm-accent-cyan) 0%, var(--hm-primary) 100%);
}
.hm-hist__label {
font-size: 9px;
color: var(--hm-text-3);
transform: scale(0.92);
white-space: nowrap;
}
/*
* 24 小时柱:柱子 hover 变实色这件事本来就有,这一层只补「它是入口」——
* 指针、整列宽的极浅底衬(说明点的是这个小时段的全部,不是柱顶那一截),
* 以及底部刻度跟着一起提色。padding 归零是必须的:button 的默认内边距会把 24 等分挤歪。
*/
.hm-hist__col--link {
font: inherit;
color: inherit;
background: transparent;
border: 0;
padding: 0;
cursor: pointer;
border-radius: 3px 3px 0 0;
}
.hm-hist__col--link:hover {
background: var(--hm-primary-wash);
}
.hm-hist__col--link:hover .hm-hist__label {
color: var(--hm-primary);
}
.hm-hist__col--link:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* ------------------------------- 加载态 ------------------------------- */
.hm-loading {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
color: var(--hm-text-2);
font-size: 13px;
}
.hm-loading__ring {
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px solid var(--hm-primary-wash-strong);
border-top-color: var(--hm-primary);
animation: hm-spin 0.8s linear infinite;
}
@keyframes hm-spin {
to {
transform: rotate(360deg);
}
}
.hm-progress {
width: 220px;
height: 4px;
border-radius: 2px;
background: var(--hm-divider);
overflow: hidden;
}
.hm-progress__bar {
height: 100%;
background: linear-gradient(90deg, var(--hm-primary) 0%, var(--hm-accent-cyan) 100%);
transition: width 0.2s ease;
}
/* ------------------------------- 引导卡 ------------------------------- */
.hm-guide {
max-width: 560px;
padding: 22px 24px;
background: var(--hm-surface);
border: 1px solid var(--hm-border);
border-radius: var(--hm-radius-lg);
box-shadow: var(--hm-shadow-pop);
}
.hm-guide__title {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
font-weight: 700;
color: var(--hm-text-1);
margin-bottom: 10px;
}
.hm-guide__badge {
display: inline-flex;
align-items: center;
padding: 1px 7px;
border-radius: 999px;
font-size: 10px;
font-weight: 600;
background: var(--hm-primary-wash);
color: var(--hm-primary);
}
.hm-guide__text {
font-size: 12.5px;
line-height: 1.75;
color: var(--hm-text-2);
}
.hm-guide__hint {
margin-top: 12px;
padding: 10px 12px;
border-radius: var(--hm-radius);
background: var(--hm-primary-wash);
border-left: 3px solid var(--hm-primary);
font-size: 12px;
line-height: 1.7;
color: var(--hm-text-2);
}
.hm-guide__code {
margin-top: 10px;
padding: 10px 12px;
border-radius: var(--hm-radius);
background: var(--hm-primary-deep);
color: #cdd6f5;
font-family: Consolas, 'Courier New', monospace;
font-size: 11.5px;
line-height: 1.75;
white-space: pre;
overflow-x: auto;
}
/* 空态引导弹窗正文(MapStage › EmptyImportModal) */
.hm-empty-modal p {
margin: 0 0 12px;
line-height: 1.75;
font-size: 13px;
color: var(--hm-text-2);
}
.hm-empty-modal p:last-child {
margin-bottom: 0;
}
.hm-empty-modal code {
padding: 1px 6px;
border-radius: 4px;
background: var(--hm-primary-deep);
color: #cdd6f5;
font-family: Consolas, 'Courier New', monospace;
font-size: 12px;
}
/* 解析进度。这块只在真的在解析时出现,接在说明文字下面,用一条虚线分开:
上面讲「要导入什么」,下面讲「这一次导到哪儿了」,两件事不该连成一段读。
弹窗盖着地图、顶栏那颗「解析中 x%」被挡在右上角,这里没有读数人就以为文件没选上。 */
.hm-empty-modal__parse {
margin-top: 2px;
padding-top: 12px;
border-top: 1px dashed var(--hm-divider);
}
.hm-empty-modal__parse-k {
margin-top: 2px;
font-size: 12px;
color: var(--hm-text-3);
}
/* ------------------------------- 其它 ------------------------------- */
.hm-kv {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 6px 0;
font-size: 12px;
border-bottom: 1px dashed var(--hm-divider);
}
.hm-kv:last-child {
border-bottom: none;
}
.hm-kv__k {
color: var(--hm-text-3);
}
.hm-kv__v {
color: var(--hm-text-1);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.hm-dict-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
background: var(--hm-primary-wash);
color: var(--hm-primary);
border: 1px solid transparent;
}
.hm-perf {
font-variant-numeric: tabular-nums;
}
/* ------------------------------- 明细抽屉(毛玻璃) ------------------------------- */
/*
* 抽屉是 antd 组件,样式靠运行时注入,这里用 rootClassName 作用域覆盖,
* 让内容区 / 头部 / 表格都透出被模糊的地图底色,与左右操作栏、桶卡保持同一套玻璃语言。
* 内容底不透明度取 0.74(比侧栏略高),保证密集表格仍清晰可读。
*/
.hm-drawer-glass .ant-drawer-section,
.hm-drawer-glass .ant-drawer-content {
background: var(--hm-glass-drawer) !important;
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
box-shadow: var(--hm-glass-shadow);
}
.hm-drawer-glass .ant-drawer-header {
background: var(--hm-glass-side-strong) !important;
border-bottom: 1px solid var(--hm-glass-border) !important;
}
/*
* 抽屉宽度现在跟着视口变(见 src/layout/drawerWidth.ts),窄到 392 时标题那句
* 「反复出险位置 · 宝安区 西乡街道 …」必然放不下。没有下面这几行会发生的是:
* antd 把标题那格按内容撑开,右侧那颗「在地图上看这一项」被挤到换行或压扁,
* 而标题自己一个字都没截 —— 整张抽屉的头部看起来像坏了。
* 规矩是「标题可截、按钮不许被挤」:标题吃剩下的宽度,按钮固定占自己的位置。
*/
.hm-drawer-glass .ant-drawer-header {
align-items: flex-start;
gap: 8px;
}
.hm-drawer-glass .ant-drawer-header-title,
.hm-drawer-glass .ant-drawer-header-title .ant-drawer-title {
min-width: 0;
}
.hm-drawer-glass .ant-drawer-extra {
flex: none;
display: flex;
align-items: center;
gap: 2px;
}
/* 主标题 + 副标题上下叠(组件见 @hm/ui 的 DrawerTitle)。字号比原来小一档:
14px 的主标题在 392 宽的头部里一行放不下七八个字,而副标题本来就只是注脚。 */
.hm-drawer-title {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
font-size: 13px;
}
.hm-drawer-title__main,
.hm-drawer-title__note {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-drawer-title__note {
font-size: 11px;
font-weight: 400;
color: var(--hm-text-3);
}
.hm-drawer-glass .ant-drawer-header-title .ant-drawer-title {
color: var(--hm-text-1) !important;
font-weight: 600;
}
.hm-drawer-glass .ant-drawer-body {
background: transparent !important;
}
/*
* 抽屉层横向滚动条:这是「鼠标移到右侧抽屉、整页冒出横向+纵向滚动条」的根因。
*
* antd v6 的抽屉内容容器 .ant-drawer-section(以及 .ant-drawer-body)默认都是
* overflow:auto,而抽屉是 position:fixed 挂在 body、贴着屏幕右缘,它的滚动条看着就像
* 页面在滚;覆盖式滚动条又只在 hover 时才显形,所以「一放鼠标就出现」。
* 列宽已全部给定值(见 CaseListDrawer 的 caseColumns,含出险地点按抽屉宽算出),
* 表格总宽刚好等于正文宽,本不该横滚;这里再把横向显式关死,作为兜底,
* 纵向仍交给 body 单独滚(长表格唯一滚动区,表头 sticky)。
* section 这一层原本也是 auto,会和 body 套出双层滚动条,横向一并收掉。 */
.hm-drawer-glass .ant-drawer-section {
overflow-x: hidden;
}
.hm-drawer-glass .ant-drawer-body {
overflow-x: hidden;
}
/*
* 这里原本有一条 `.hm-drawer-glass .ant-drawer-mask`:深色半透 + blur(2px)。
* 四张抽屉现在都传 `mask={false}`(antd 根本不再渲染那个节点,见「抽屉一律不带遮罩」那条规矩:
* 压着地图的半透明层会让人以为地图打不开),规则于是成了死代码。
* 留着它不只是占几行:以后谁想给某张抽屉重新加遮罩,会连带继承一份「每帧重新模糊整屏」的开销 ——
* 抽屉身后同样是那块全屏 WebGL 地图,而拖动卡顿里最大的一笔单项开销就是 backdrop-filter。
* 真要加遮罩,先按 `hm-map-busy` 那套在手势期把它降下来。
*/
/* 表格整体透明化,行悬浮用品牌色淡染,避免实心白块破坏玻璃质感 */
.hm-drawer-glass .ant-table,
.hm-drawer-glass .ant-table-container,
.hm-drawer-glass .ant-table-content,
.hm-drawer-glass .ant-table-wrapper,
.hm-drawer-glass .ant-table-thead > tr > th,
.hm-drawer-glass .ant-table-tbody > tr > td {
background: transparent !important;
}
.hm-drawer-glass .ant-table-thead > tr > th {
color: var(--hm-text-2) !important;
border-bottom: 1px solid var(--hm-glass-border) !important;
}
/* 表头钉住:抽屉 body 是唯一的滚动区(表格不再设 scroll.y),所以表头得自己 sticky,
* 否则往下滚几行就认不出哪列是案件号了。
* 底衬必须补回强玻璃并重新模糊 —— 上面那条规则把 th 设成了 transparent,
* 静态时无所谓,一旦 sticky 就有行从表头底下穿过,透明表头等于让两层文字叠在一起。 */
.hm-drawer-glass .ant-table-thead > tr > th {
position: sticky;
top: 0;
z-index: 2;
background: var(--hm-glass-side-strong) !important;
backdrop-filter: var(--hm-glass-blur);
-webkit-backdrop-filter: var(--hm-glass-blur);
}
.hm-drawer-glass .ant-table-tbody > tr > td {
color: var(--hm-text-1);
border-bottom: 1px solid var(--hm-divider) !important;
}
/*
* 单元格横向留白收到 6px(antd 默认 8,一页六列就是 96px)。
* 抽屉最窄那一档正文只有 360px 可用,这 96 相当于整整一列 —— 与其让地址列被挤到
* 只剩省略号,不如把留白收紧:数字与短中文在 6px 下照样不粘字。
*/
.hm-drawer-glass .ant-table-thead > tr > th,
.hm-drawer-glass .ant-table-tbody > tr > td {
padding-inline: 6px;
}
/*
* 地址 + 案件号两行一格(案件清单与明细抽屉共用这一种长相)。
*
* 案件号是 15~24 位纯数字(见 scripts/preprocess.mjs 的校验),单占一列要 168px 才不断行,
* 比地址那一列还宽 —— 而它恰恰是信息量最低的一列(人看的是地点,念的是案件号)。
* 换行压在地址下面、字号降一档、颜色走 text-3,两行就够;地址那一行仍然整行可读,
* 完整地址在悬浮说明里。窄抽屉因此能同时保住「读得出地点」和「抄得走案件号」。
*/
.hm-case-cell {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.hm-case-cell__addr {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--hm-text-1);
}
.hm-case-cell__no {
color: var(--hm-text-3);
font-size: 11px;
line-height: 1.35;
word-break: break-all;
font-variant-numeric: tabular-nums;
}
/* 淡玻璃斑马纹:偶数行叠一层更亮的半透明白,在透明表格上勾出节奏又不破坏质感 */
.hm-drawer-glass .ant-table-tbody > tr:nth-child(even) > td {
background: rgba(255, 255, 255, 0.42) !important;
}
.hm-drawer-glass .ant-table-tbody > tr.ant-table-row:hover > td,
.hm-drawer-glass .ant-table-tbody > tr > td.ant-table-cell-row-hover {
background: rgba(70, 83, 162, 0.14) !important;
}
.hm-drawer-glass .ant-table-placeholder .ant-table-cell {
background: transparent !important;
}
/* ------------------------------- 时间分布抽屉 ------------------------------- */
/*
* 「查看全部 · 时间分布」:一次一种切法(按天 / 按星期 / 按小时)× 一种读法
* (柱状图 / 折线图 / 清单)。抽屉 body 仍然是唯一的竖向滚动区(这里不设任何
* max-height + overflow-y),只有图横向超宽时它自己横向滚 —— 横向和竖向各一条,
* 不会套出双层滚动。
*/
/* 读法设置卡:一行一个问题(怎么切 / 怎么看),标签定宽在左、分段铺满右侧。
两组竖排是右栏宽度的必然:372px 里并排,每组剩不到 150px,三个选项会互相挤。
卡片的边界把它和「读数块」「图」分成三层:设置、结果、读法,各归其位。 */
.hm-time-ctl {
display: flex;
flex-direction: column;
margin: 14px 0 0;
background: var(--hm-surface);
border: 1px solid var(--hm-divider);
border-radius: var(--hm-radius);
overflow: hidden;
}
.hm-time-ctl__row {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
}
/* 两行之间一条发丝线:说明它们是同一张卡里的两问,而不是两块独立控件 */
.hm-time-ctl__row + .hm-time-ctl__row {
border-top: 1px solid var(--hm-divider);
}
.hm-time-ctl__label {
flex: 0 0 auto;
width: 36px;
font-size: 11px;
letter-spacing: 0.3px;
color: var(--hm-text-3);
}
/*
* 这一处的分段控件改成「浅轨 + 白色药丸 + 主色字」。
*
* 项目里的 Segmented 默认是实心主色 + 白字(themeConfig 的 itemSelectedBg),
* 那套在弹窗里够醒目,但这里两张深色块压在浅色读数块之间,整块面板的重心
* 会被这两个控件拽走。选中仍然用主色,只是换成前景色 —— 与清单排序条同一套语言:
* 选中的那一档靠颜色和字重说话,不靠一块色块。
*/
/* 选择器都带 .hm-time-ctl 前缀并多一层 .ant-segmented:
antd 的样式是运行时注入的,单类选择器会被它盖掉,必须靠特异性赢;
同时限定在这一块,别把别处的分段控件一起改掉。 */
.hm-time-ctl .hm-time-ctl__seg {
flex: 1 1 auto;
min-width: 0;
padding: 2px;
background: var(--hm-surface-sunken);
border-radius: 8px;
}
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-item {
flex: 1 1 0;
min-width: 0;
border-radius: 6px;
color: var(--hm-text-2);
transition:
color 0.14s ease,
background 0.14s ease;
}
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-item-label {
padding: 0 4px;
overflow: hidden;
font-size: 11.5px;
line-height: 22px;
white-space: nowrap;
text-overflow: ellipsis;
}
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-item:hover:not(.ant-segmented-item-selected) {
color: var(--hm-primary);
background: rgba(70, 83, 162, 0.06);
}
/* 选中:白药丸 + 主色字 + 一层极淡投影,盖过 themeConfig 里那条全局
itemSelectedBg(实心主色)。 */
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-item-selected,
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-thumb {
background: var(--hm-surface);
color: var(--hm-primary);
box-shadow: 0 1px 4px -2px rgba(34, 43, 95, 0.55);
}
.hm-time-ctl .hm-time-ctl__seg .ant-segmented-item-selected {
font-weight: 600;
}
/* 图表卡:读数行 + 图本体装进同一张白卡。
原先图直接铺在面板底上,上面一张控制卡、下面一段说明,三块散件各说各的;
装进卡之后「设置 → 图 → 读法」是一条从上到下的阅读线。 */
.hm-tccard {
margin-top: 10px;
padding: 10px 12px 6px;
background: var(--hm-surface);
border: 1px solid var(--hm-divider);
border-radius: var(--hm-radius);
}
/*
* 图本体(柱状 / 折线共用一张 SVG)。
*
* 颜色只分四层:数据(品牌靛)、参照(浅靛虚线 = 平均)、峰值(金色,只用在这一处)、
* 悬停(整列一层 wash)。没有第二套色阶,长短与高低是这两张图真正的读数手段。
*/
.hm-tc {
margin-top: 0;
}
/*
* 读数行:固定两行高度,悬停只换字、不换版式。
*
* 原先它是一条 flex-wrap 的行,空闲时一行短文案、悬停时塞进五段读数;
* 在 372px 里长内容折成两行、短内容缩回一行,图每秒被推上推下 ——
* 用户看到的「提示一下出现一下消失、布局一直在闪」就是这次重排。
* 现在 height 写死、两行各自 nowrap + 省略号,高度不参与内容计算。
*/
.hm-tc__readout {
display: flex;
flex-direction: column;
gap: 2px;
height: 38px;
margin-bottom: 6px;
font-size: 11.5px;
color: var(--hm-text-2);
font-variant-numeric: tabular-nums;
}
.hm-tc__readout-l1,
.hm-tc__readout-l2 {
display: flex;
align-items: baseline;
gap: 10px;
min-width: 0;
white-space: nowrap;
overflow: hidden;
}
.hm-tc__readout-l1 {
min-height: 19px;
}
.hm-tc__readout-l2 {
min-height: 15px;
}
.hm-tc__readout-label {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
font-size: 12.5px;
font-weight: 600;
color: var(--hm-text-1);
text-overflow: ellipsis;
}
.hm-tc__readout-value {
flex: none;
font-size: 14px;
color: var(--hm-primary);
}
.hm-tc__readout-bit {
flex: none;
color: var(--hm-text-3);
}
/* 「点一下看这一档的案件清单」只在悬停时出现:平时它是重复说明,悬停时它正好接住下一句想问的话 */
.hm-tc__readout-cta {
flex: none;
font-size: 11px;
font-weight: 600;
color: var(--hm-primary);
}
.hm-tc__readout-idle {
min-width: 0;
overflow: hidden;
color: var(--hm-text-3);
text-overflow: ellipsis;
}
/* 图不再横向滚动:svg 宽度就是容器的宽,档数多时柱子自己变细,
精确读数交给悬停读数行。纵向滚动交给面板,这里不另设滚动条 */
.hm-tc__scroll {
overflow: hidden;
padding-bottom: 2px;
}
.hm-tc__svg {
display: block;
}
/* 悬停那一档的整列底衬:读数行说的是哪一列,不用眼睛在上下两处之间来回确认 */
.hm-tc__band {
fill: var(--hm-primary-wash);
}
.hm-tc__axis {
stroke: var(--hm-primary-wash-strong);
stroke-width: 1;
}
.hm-tc__bar {
fill: var(--hm-primary);
}
/* 0 起也留一截极淡的桩:那是「这一段确实没有案件」这个事实,
什么都不画就成了「图坏了 / 数据缺了」,也数不出总档数 */
.hm-tc__bar--empty {
fill: var(--hm-primary-wash-strong);
}
.hm-tc__peak {
fill: var(--hm-accent-gold-deep);
}
.hm-tc__line {
fill: none;
stroke: var(--hm-primary);
stroke-width: 1.8;
stroke-linejoin: round;
stroke-linecap: round;
}
.hm-tc__area {
fill: var(--hm-primary);
opacity: 0.08;
}
.hm-tc__dot {
fill: var(--hm-surface);
stroke: var(--hm-primary);
stroke-width: 1.4;
}
.hm-tc__dot--peak {
fill: var(--hm-accent-gold-deep);
stroke: var(--hm-accent-gold-deep);
}
.hm-tc__dot--hover {
fill: var(--hm-primary);
stroke: var(--hm-surface);
stroke-width: 1.6;
}
/* 参照平均的虚线:不是坐标刻度,是「比平时多还是少」这个判断的落点 */
.hm-tc__mean {
stroke: var(--hm-primary-soft);
stroke-width: 1;
stroke-dasharray: 4 4;
}
.hm-tc__mean-label,
.hm-tc__tick {
font-size: 10px;
fill: var(--hm-text-3);
}
/* 命中区摊在最后:一整列从上到下都好点,不必瞄准柱子那一截。
fill 用 transparent 而不是 none —— none 的话鼠标穿过去,点在两柱之间 */
.hm-tc__hit {
fill: transparent;
}
.hm-tc__hit--link {
cursor: pointer;
}
.hm-tc__hit:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: -2px;
}
/* 抽屉里的 antd 表格(榜单、点位清单、时间分布的清单形态)整行可点:只补指针,
底色沿用 antd 自己的行 hover —— 换成本项目的 wash 会和表头、斑马纹变成两套灰 */
.hm-row--link {
cursor: pointer;
}
/* ------------------------------- 清单抽屉 ------------------------------- */
/*
* 案件清单顶部的筛钮区(行政区 / 街道 / 报案时间 / 关键词)。
*
* 它是「在清单内再筛一次」,不是右侧筛选的复刻,所以长相要能一眼看出是一层附加的东西:
* 一张浅底卡片压在说明下面、表格上面,比右侧 Field 更紧(11px 标签、小一号控件)。
* 区与街道各占半宽成一对,时间和关键词各自通栏 —— 前者要放多选框,后者要放整条日期区间。
*/
.hm-roster-bar {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px 12px;
margin-bottom: 12px;
padding: 10px 12px 8px;
background: rgba(255, 255, 255, 0.4);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
}
.hm-roster-bar__cell {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.hm-roster-bar__cell--wide {
grid-column: 1 / -1;
}
.hm-roster-bar__label {
font-size: 11px;
color: var(--hm-text-3);
}
/* 时间档与日期区间是同一件事的两种粒度,横着排、放不下就换行,别挤成半截控件 */
.hm-roster-bar__time {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
/*
* 卡片底部那行「右侧筛选:…」是口径回执:让人看清这份清单是从哪个窗口切出来的,
* 右边那颗「清空附加筛选」只作用于本卡片。它和上面的控件隔一条虚线,
* 表示它是说明 + 出口,不是第五个筛钮。
*/
.hm-roster-bar__foot {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 2px;
padding-top: 7px;
border-top: 1px dashed var(--hm-divider);
font-size: 11px;
color: var(--hm-text-3);
}
/* 表格下面那行:清单只读的承诺 + 时间跨度 + 取数耗时,字号与灰度和口径回执同一档 */
.hm-roster-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 10px;
padding-top: 8px;
border-top: 1px dashed var(--hm-divider);
font-size: 11px;
color: var(--hm-text-3);
}
/*
* 行末的「在地图上定位这一处」标记。
*
* 它点在整行(点开案件明细)之外,所以得有自己的可点样子:默认走 text-3 的灰,
* 悬停才变主题色 —— 一列全亮会把视线从「地点」拽到「按钮」上。
* 反色只在按下时给一下,用来确认「点中了这一行」。
*/
.hm-locate {
color: var(--hm-text-3) !important;
transition: color 0.14s ease;
}
.hm-locate:hover {
color: var(--hm-primary) !important;
}
.hm-locate:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* ------------------------- 刚刚定位到的那一行 / 那一格 ------------------------- */
/*
* 行末那颗针把地图挪走之后,人回头看清单的第一件事是「我刚才点的是哪一条」。
* 没有这个记号就得自己按地址回忆、或者重新点一行确认 —— 清单越长这件事越难。
*
* 三种手段都很轻:一层品牌浅洗的底、首列一道 2px 竖线、行末那颗针转成品牌色。
* 不做得更重,是因为它只是「当前正在看这一条」的记号,不是选中态;
* 一旦重过地图上那枚带光圈的针,眼睛就会被拉回清单,而人此刻要看的是图。
*
* 首列就是展开箭头那一列(Table 的 expandable.columnWidth 排在第一),
* 竖线因此贴在行真正的左缘上;用伪元素而不是 border-left,免得把 fixed 布局的列宽挤歪 2px。
*/
/*
* 必须带 !important:上面「表格整体透明化」和斑马纹那两条都写了 !important,
* 凭选择器权重压不过去 —— 少了它,定位行在偶数行上只剩一道竖线,底色照旧是斑马纹的亮白。
*/
.hm-drawer-glass .ant-table-tbody > tr.hm-row--located > td,
.hm-drawer-glass .ant-table-tbody > tr.hm-row--located:hover > td {
background: var(--hm-primary-wash) !important;
}
.hm-drawer-glass .ant-table-tbody > tr.hm-row--located > td:first-child {
position: relative;
}
.hm-drawer-glass .ant-table-tbody > tr.hm-row--located > td:first-child::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: 2px;
background: var(--hm-primary);
}
.hm-drawer-glass tr.hm-row--located .hm-locate {
color: var(--hm-primary) !important;
}
/* ------------------------------- 黑点降噪 ------------------------------- */
/* 面板里的说明性文字。统一走 text-3 + 12px,避免每个面板自己定一套灰度 */
.hm-hint {
font-size: 11.5px;
line-height: 1.7;
color: var(--hm-text-3);
}
.hm-hint--note {
margin-top: 8px;
padding: 6px 8px;
border-radius: 8px;
background: var(--hm-primary-wash);
color: var(--hm-text-2);
}
/* 高级参数:标签定宽 + 滑杆占余量,四行下来必须严格对齐才不像临时堆的 */
.hm-adv {
display: flex;
flex-direction: column;
gap: 2px;
}
.hm-adv__row {
display: flex;
align-items: center;
gap: 10px;
font-size: 11.5px;
color: var(--hm-text-3);
}
.hm-adv__row > span {
flex: 0 0 56px;
}
.hm-adv__row .ant-slider {
flex: 1 1 auto;
margin: 6px 4px 2px;
}
/* 滑杆刻度字(从严 / 默认 / 从宽):全局 fontSize 是 13,marks 跟着大了;
收回 antd 默认的 12px,让它们退回「轨道下的注脚」该有的分量 */
.hm-rail .ant-slider-mark-text {
font-size: 10px;
}
/*
* 降噪面板里的控制卡:降噪强度 / 参数细调各一张。
*
* 它们原先是一列素面的 Field,与上方的统计维度卡、下方的结论条不在一套语言里;
* 而右栏本身是半透明玻璃,素面滑杆直接浮在玻璃上,滑轨的浅色边界几乎看不见。
* 卡片把「一个旋钮 + 它的口径」收成一个有边界的对象,也顺手解决了说明文字
* 与滑杆抢宽度的问题(说明已收进卡头的问号)。
*/
.hm-sectcard.hm-ctlcard {
/* margin-top: 8px; */
padding: 10px 12px 12px;
}
.hm-ctlcard__head {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 5px;
}
.hm-ctlcard__title {
flex: none;
font-size: 12.5px;
font-weight: 600;
letter-spacing: 0.2px;
color: var(--hm-text-1);
}
/* 当前值:一颗读数药丸,滑杆一动就跟着换。
滑杆本身只有刻度与手柄,把「现在保留前几成」念成一个数放在标题旁,
不改参数也能一眼读到当前口径。 */
.hm-ctlcard__val {
flex: none;
margin-left: auto;
padding: 1px 8px;
border-radius: 999px;
background: var(--hm-primary-wash);
font-size: 10.5px;
font-weight: 600;
line-height: 16px;
color: var(--hm-primary);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
/* 参数细调的方向提示:与读数药丸同一位置,但不给底色 —— 它不是读数 */
.hm-ctlcard__tag {
flex: none;
margin-left: auto;
font-size: 10.5px;
color: var(--hm-text-3);
white-space: nowrap;
}
/* 分析结论条:滤掉了多少、留下多少,是这一功能唯一的「效果证明」,所以做成一行紧凑读数 */
.hm-analysis-sum {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 12px;
margin-top: 12px;
padding: 9px 10px;
border-radius: 9px;
background: var(--hm-primary-wash);
font-size: 11.5px;
color: var(--hm-text-2);
}
.hm-analysis-sum b {
color: var(--hm-primary-deep);
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.hm-analysis-sum__ratio {
font-style: normal;
color: var(--hm-text-3);
}
.hm-analysis-sum__ms {
margin-left: auto;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
/* --------------------------- 降噪算法说明 ---------------------------
折叠在降噪面板里的一段说明。刻意不做成 Drawer/Modal:这段内容的用处是
「看图时顺手核对口径」,弹层会打断读图,而常驻又挤掉滑杆的空间。
展开后不自己套滚动容器 —— 面板 body 已经可滚,嵌套滚动在这个宽度里
只会让人找不到该滚哪一层。 */
.hm-algo {
margin: 2px 0 6px;
border: 1px solid var(--hm-divider);
border-radius: 9px;
background: rgba(255, 255, 255, 0.45);
overflow: hidden;
}
.hm-algo__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
padding: 7px 10px;
font: inherit;
font-size: 11.5px;
font-weight: 600;
text-align: left;
color: var(--hm-text-2);
background: transparent;
border: 0;
cursor: pointer;
transition:
color 0.15s,
background 0.15s;
}
.hm-algo__head:hover {
color: var(--hm-primary);
background: var(--hm-primary-wash);
}
.hm-algo__chev {
flex: 0 0 auto;
font-size: 10px;
color: var(--hm-text-3);
transition: transform 0.22s ease;
}
.hm-algo.is-open .hm-algo__chev {
transform: rotate(180deg);
}
.hm-algo__body {
padding: 2px 10px 11px;
}
/* 一句话结论放在三段细节之前:多数人只要读到这一行就够了,
剩下的分支是给「数字为什么和颜色对不上」这类追问准备的。 */
.hm-algo__tldr {
margin: 2px 0 10px;
padding: 7px 9px;
border-radius: 8px;
background: var(--hm-primary-wash);
font-size: 11.5px;
line-height: 1.65;
color: var(--hm-text-1);
}
/* 统计维度那一句:接在概述下面,正文语气与 tldr 一致但不抢主色底 ——
它讲的是「这一批结果算的是谁」,属于口径说明,不属于概述里那句「黑点是什么」 */
.hm-algo__dim {
margin: -4px 0 10px;
padding: 0 2px;
font-size: 11.5px;
line-height: 1.65;
color: var(--hm-text-3);
}
.hm-algo__sec + .hm-algo__sec {
margin-top: 10px;
padding-top: 9px;
border-top: 1px dashed var(--hm-divider);
}
.hm-algo__sec-title {
margin-bottom: 6px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.4px;
color: var(--hm-primary-deep);
}
.hm-algo__steps {
display: flex;
flex-direction: column;
gap: 6px;
margin: 0;
padding: 0;
list-style: none;
counter-reset: hm-algo-step;
font-size: 11.5px;
line-height: 1.68;
color: var(--hm-text-2);
}
.hm-algo__steps > li {
position: relative;
padding-left: 19px;
}
.hm-algo__steps > li::before {
counter-increment: hm-algo-step;
content: counter(hm-algo-step);
position: absolute;
left: 0;
top: 2px;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--hm-primary-wash-strong);
color: var(--hm-primary-deep);
font-size: 9.5px;
font-weight: 700;
line-height: 14px;
text-align: center;
}
/* 「容易误读」那节没有先后顺序,编号反而是误导,换成警示点 */
.hm-algo__steps--plain > li::before {
content: '';
top: 8px;
left: 4px;
width: 6px;
height: 6px;
background: var(--hm-warn);
}
.hm-algo__steps b,
.hm-algo__marks b {
color: var(--hm-primary-deep);
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.hm-algo__marks {
display: flex;
flex-direction: column;
gap: 7px;
margin: 0;
}
.hm-algo__marks > div {
display: grid;
grid-template-columns: 78px minmax(0, 1fr);
gap: 8px;
align-items: start;
}
.hm-algo__marks dt {
font-size: 11px;
font-weight: 700;
line-height: 1.6;
color: var(--hm-primary-deep);
}
.hm-algo__marks dd {
margin: 0;
font-size: 11.5px;
line-height: 1.68;
color: var(--hm-text-2);
}
/* ------------------------------- 黑点清单 ------------------------------- */
.hm-hot__meta {
font-size: 11px;
color: var(--hm-text-3);
}
/* ---------------------------- 黑点清单表头 ----------------------------
表头(上行「这一批有多大」、下行「按什么排」)已整块搬进面板 header
(Panel 的 headRow 槽,.hm-panel__headrow):它是表头,不跟清单滚,
住进 header 之后连 sticky 都不需要。这里只留两行的内部样式;
与正文的分界线由 header 自己的 border-bottom 担任。 */
/* 上行:数字在前、单位在后。两个数之间用一条竖发丝隔开 ——
用「·」会读成并列的两个词,竖线才读成两列。 */
.hm-hot__sum {
/* 口径色:与右侧「统计维度」同一套色相,两处不用读字也能对上号 */
--ht-ink: var(--hm-primary);
--ht-tint: rgba(70, 83, 162, 0.12);
display: flex;
align-items: baseline;
gap: 9px;
min-width: 0;
}
.hm-hot__sum[data-dim='operating'] {
--ht-ink: #a5690a;
--ht-tint: rgba(232, 164, 26, 0.15);
}
.hm-hot__sum[data-dim='nonOperating'] {
--ht-ink: #0d7fa9;
--ht-tint: rgba(40, 167, 225, 0.14);
}
/* 覆盖起数:这一批黑点的量级,也是上行里唯一的重点(17px,不再是 21px 的主视觉) */
.hm-hot__sum-v {
flex: none;
font-size: 17px;
font-weight: 600;
line-height: 1.15;
letter-spacing: 0.2px;
color: var(--hm-primary-deep);
font-variant-numeric: tabular-nums;
}
.hm-hot__sum-v i {
margin-left: 5px;
font-size: 11px;
font-style: normal;
font-weight: 400;
letter-spacing: 0;
color: var(--hm-text-3);
}
.hm-hot__sum-sep {
flex: none;
align-self: center;
width: 1px;
height: 13px;
background: var(--hm-border);
}
/* 识别处数:清单有几条。字号比左边小一档 —— 它回答的是「几处」,不是量级;
原先它挂在面板标题栏右端,与「覆盖多少起」隔了半个屏,两个数对不起来。 */
.hm-hot__sum-dom {
flex: none;
font-size: 12.5px;
font-weight: 600;
color: var(--hm-primary-deep);
font-variant-numeric: tabular-nums;
}
.hm-hot__sum-dom i {
margin-left: 2px;
font-size: 11px;
font-style: normal;
font-weight: 400;
color: var(--hm-text-3);
}
/* 「24 / 96 处」的后半截:识别总数。比清单条数弱一档,因为它不在这张清单上 */
.hm-hot__sum-dom em {
font-style: normal;
font-weight: 400;
color: var(--hm-text-3);
}
/* 口径标签:全部 / 营运 / 非营运。
它是这个数成立的前提(同一批案子按营运判与按全部判是两组黑点),所以必须在场;
但不给药丸 + 描边 —— 那看着像一颗能点的筛选项。方角浅底、10.5px,
读成一枚状态标记而不是一个按钮。 */
.hm-hot__dim {
flex: none;
margin-left: auto;
align-self: center;
padding: 1px 6px;
border-radius: 4px;
background: var(--ht-tint);
font-size: 10.5px;
font-weight: 600;
letter-spacing: 0.4px;
line-height: 1.6;
color: var(--ht-ink);
white-space: nowrap;
}
/*
* 统计维度(右侧参数栏顶部的独立区块)。
*
* 为什么不与下面四个 Field 同列:那四个是「怎么算」的旋钮,这个是「算谁」的口径。
* 同一列排下去,第五项会被当成第五个滑杆 —— 于是有人会期望「切营运只是让图上的点少一些」,
* 而实际上会换出一组新的黑点。给它一层边框和一点凹陷底色,是在视觉上先说清这件事:
* 这是一块「换问题」的开关,不是又一根滑杆。
*
* 三张卡片而不是分段控件(第二轮反馈「太普通」):
* 每一档要念的不只是名字,还有「这一档有多少案子参与判定」—— 那是选择依据本身。
* 分段控件塞不进第二个数,卡片可以:名字一行、数字一行,三档并排就是一张对比表。
* 三档各配一个色相(靛 / 车牌黄 / 青蓝),未选也垫一层同色淡底,选中再深一档并加同色描边:
* 三种状态(选中 / 可选 / 重算中)一眼分得开,不必去读文字,整块又不会重得压住下面的滑杆。
*/
.hm-dim {
--dim-accent: var(--hm-primary);
/* margin-bottom: 14px; */
padding: 11px 12px 10px;
border: 1px solid var(--hm-divider);
border-radius: 10px;
/* 左上角一层极淡的主色雾:让这一块从下方素面的滑杆列里浮出来,又不至于抢走卡片本身 */
background:
radial-gradient(130% 90% at 0% 0%, rgba(70, 83, 162, 0.08), transparent 62%),
var(--hm-surface-sunken);
}
/* 整块的色相跟着当前档位走:标题前那一小竖条就是「现在算的是谁」的图钉 */
.hm-dim[data-dim='operating'] {
--dim-accent: #a5690a;
}
.hm-dim[data-dim='nonOperating'] {
--dim-accent: #0d7fa9;
}
.hm-dim__head {
display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 9px;
}
.hm-dim__title {
display: inline-flex;
flex: none;
align-items: center;
gap: 6px;
font-size: 12.5px;
font-weight: 600;
letter-spacing: 0.3px;
color: var(--hm-text-1);
}
.hm-dim__title::before {
width: 3px;
height: 11px;
border-radius: 2px;
background: var(--dim-accent);
content: '';
}
/* 说明做成同排的小字而不是正文:它要一直看得见(口径是判定参数),但不能占掉两行。
详情那句已经收进标题旁的问号,这里只留一句「换档会重算」的方向提示。
flex:1 是给它撑开用的 —— 不撑,末尾那颗问号会紧贴在省略号后面,而不是靠右。 */
.hm-dim__tag {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
font-size: 10.5px;
color: var(--hm-text-3);
white-space: nowrap;
text-overflow: ellipsis;
}
.hm-dim__cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
}
/* 三档各带自己的色相,靠「色相」而不是靠「色块深浅」来说算的是谁:
全部=主色靛、营运=车牌黄(营运车辆挂黄牌)、非营运=青蓝。
未选中也有底:营运 / 非营运垫一层极淡的同色(3%~5%),一眼能看出这两张各属于哪一色系,
又不会重到像被选中;选中只比它深一档,加同色描边与顶部细光。
之前选中是实心深色渐变,三张里最重的一块颜色压在这里,下面的滑杆全被它压住了。 */
.hm-dim__card {
--dc-ink: #3f4a8f; /* 数字与描边:白底、淡色雾上都读得清 */
--dc-line: #bfc4e0;
--dc-tint: var(--hm-surface);
--dc-hover: rgba(70, 83, 162, 0.045);
--dc-wash: rgba(70, 83, 162, 0.09);
--dc-ring: rgba(70, 83, 162, 0.15);
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
min-width: 0;
padding: 8px 4px 7px;
border: 1px solid var(--hm-border);
border-radius: 8px;
background: var(--dc-tint);
font: inherit;
color: var(--hm-text-2);
cursor: pointer;
transition:
border-color 0.14s ease,
background 0.14s ease,
box-shadow 0.14s ease,
transform 0.14s ease;
}
.hm-dim__card[data-dim='operating'] {
--dc-ink: #a5690a;
--dc-line: #e8c078;
--dc-tint: rgba(232, 164, 26, 0.05);
--dc-hover: rgba(232, 164, 26, 0.085);
--dc-wash: rgba(232, 164, 26, 0.12);
--dc-ring: rgba(232, 164, 26, 0.22);
}
.hm-dim__card[data-dim='nonOperating'] {
--dc-ink: #0d7fa9;
--dc-line: #9ccfe4;
--dc-tint: rgba(40, 167, 225, 0.045);
--dc-hover: rgba(40, 167, 225, 0.08);
--dc-wash: rgba(40, 167, 225, 0.115);
--dc-ring: rgba(40, 167, 225, 0.2);
}
.hm-dim__card:hover {
border-color: var(--dc-line);
background: var(--dc-hover);
transform: translateY(-1px);
box-shadow: 0 5px 12px -9px rgba(34, 43, 95, 0.55);
}
.hm-dim__card:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
/* 选中:同色淡雾 + 同色描边 + 顶部一道同色细光。够亮、又不至于把整块面板的明度压下去 */
.hm-dim__card.is-on {
border-color: var(--dc-ink);
background: var(--dc-wash);
box-shadow:
inset 0 0 0 1px var(--dc-ring),
0 2px 8px -6px rgba(34, 43, 95, 0.32);
transform: none;
}
/* 顶部那道高光:只给选中档,像仪表上亮起的一格。颜色跟着档位走,不再统一青色 */
.hm-dim__card.is-on::before {
position: absolute;
top: 0;
right: 14%;
left: 14%;
height: 2px;
border-radius: 0 0 2px 2px;
background: linear-gradient(90deg, transparent, var(--dc-ink), transparent);
opacity: 0.6;
content: '';
}
/* 「这一档正在重算」:一圈同色描边。静态信号 —— 切维度本来就在等结果,再加动画只会更烦躁 */
.hm-dim__card.is-busy {
box-shadow:
0 0 0 2px var(--dc-ring),
0 2px 8px -6px rgba(34, 43, 95, 0.32);
}
.hm-dim__card-k {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 11px;
letter-spacing: 0.5px;
color: var(--hm-text-2);
}
/* 标签前一个同色小圆点:未选中的两张也带着自己的色相,不必挨个点开才知道哪个是哪个 */
.hm-dim__card-k::before {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--dc-ink);
opacity: 0.45;
content: '';
}
.hm-dim__card.is-on .hm-dim__card-k {
font-weight: 600;
color: var(--hm-text-1);
}
.hm-dim__card.is-on .hm-dim__card-k::before {
opacity: 1;
}
.hm-dim__card-v {
max-width: 100%;
overflow: hidden;
font-size: 19px;
font-weight: 700;
line-height: 1.2;
letter-spacing: 0.2px;
color: var(--dc-ink);
font-variant-numeric: tabular-nums;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-dim__card-u {
font-size: 10px;
color: var(--hm-text-3);
}
.hm-dim__card.is-on .hm-dim__card-u {
opacity: 0.75;
}
/* 口径读数:占筛选多少、折算后的单片门槛、这一档识别出几处。数字用等宽数字对齐 ——
切换档位时数字变化不会让整行左右跳。 */
.hm-dim__facts {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 2px 12px;
margin-top: 9px;
padding-top: 8px;
border-top: 1px dashed var(--hm-divider);
font-size: 11.5px;
color: var(--hm-text-3);
}
.hm-dim__facts b {
font-weight: 600;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
/* 「正在按营运重新识别…」:给一个明确的进展口,而不是让上面那行旧口径的读数继续挂着 */
.hm-dim__pending {
color: var(--hm-primary);
}
.hm-dim__note {
margin: 7px 0 0;
font-size: 11px;
line-height: 1.6;
color: var(--hm-text-3);
}
/* 表头下行:排序。
它原先在右侧参数列里(「排序依据」分段控件),和统计维度、降噪强度、单片最少起数
排在一起 —— 那些控件每一个都会改变**识别出几处黑点**,而排序只重排已识别出来的那批,
总数一动不动;外观相近、位置相邻、反应相反,读的人只能判定它坏了。
挪到清单头上之后,它读起来像表头里的一排可点列名:无边框、无底色,
只有被选中的那一档上前景色并带一个向下的箭头。 */
.hm-hot__sortbar {
display: flex;
align-items: center;
gap: 8px;
margin-top: 5px;
/* 横向留白由面板 header 的内边距给,这里只管自己到那条底线之间的高度 */
padding: 0 0 8px;
}
.hm-hot__sortbar-k {
flex: none;
font-size: 10.5px;
letter-spacing: 0.5px;
color: var(--hm-text-3);
}
.hm-hot__sorts {
display: flex;
align-items: center;
gap: 1px;
flex: 1 1 auto;
min-width: 0;
/* 分段控件那身皮一概不要:这一条要像表头的列名,不像表单控件 */
}
.hm-hot__sortbtn {
/* 每档平分剩余宽度:排序条横向铺满容器,读起来像一排真正的列名 */
flex: 1 1 0;
margin: 0;
padding: 2px 7px;
border: 0;
border-radius: 4px;
background: transparent;
font: inherit;
font-size: 11.5px;
line-height: 1.6;
color: var(--hm-text-2);
text-align: center;
white-space: nowrap;
cursor: pointer;
transition:
color 0.12s ease,
background 0.12s ease;
}
.hm-hot__sortbtn:hover {
color: var(--hm-primary);
background: var(--hm-primary-wash);
}
.hm-hot__sortbtn:active {
background: var(--hm-primary-wash-strong);
}
.hm-hot__sortbtn:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 0;
}
/* 选中档:主色 + 加粗 + 向下箭头(表明由高到低)。不给色块 ——
这一行是表头,光标停在哪一列由前景色说明就够了,不必再长出一个按钮的皮。 */
.hm-hot__sortbtn.is-on {
color: var(--hm-primary);
font-weight: 600;
}
.hm-hot__sortbtn.is-on i {
margin-left: 3px;
font-size: 9px;
font-style: normal;
vertical-align: 1px;
}
/* 点完到结果回包之间:按钮已经跳到新档位,清单还是旧的。这一句把这段空白补上说清 */
.hm-hot__sortbar-doing {
flex: none;
font-size: 10.5px;
color: var(--hm-text-3);
}
/* 口径说明的问号(清单头的排序说明、右侧统计维度的判定说明、右缘抽屉的用法说明共用同一个长相)。
这几段原先都是整段常驻文字,把下面的读数往下压;它们属于「读过一次就够」的解释,
不是每眼都要核的数 —— 收进悬浮,需要时再看。 */
.hm-hot__sort-help,
.hm-dim__help,
.hm-list__help,
.hm-help {
flex: none;
align-self: center;
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin: 0;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
font-size: 12px;
line-height: 1;
color: var(--hm-text-3);
cursor: help;
transition: color 0.12s ease;
}
.hm-hot__sort-help:hover,
.hm-hot__sort-help:focus-visible,
.hm-dim__help:hover,
.hm-dim__help:focus-visible,
.hm-help:hover,
.hm-help:focus-visible {
color: var(--hm-primary);
}
.hm-hot__sort-help:focus-visible,
.hm-dim__help:focus-visible,
.hm-help:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
.hm-hot__loading {
display: flex;
align-items: center;
gap: 8px;
padding: 18px 14px;
font-size: 12px;
color: var(--hm-text-3);
}
.hm-hot {
list-style: none;
margin: 0;
padding: 0;
}
/* 整行是个 button:键盘可达、焦点环自然出现,比给 div 挂 onClick 正确 */
.hm-hot__row {
display: flex;
align-items: flex-start;
gap: 10px;
width: 100%;
padding: 8px 12px;
font: inherit;
text-align: left;
color: inherit;
background: transparent;
border: none;
border-bottom: 1px solid var(--hm-divider);
cursor: pointer;
transition: background 0.16s ease;
}
.hm-hot__row:hover {
background: var(--hm-primary-wash);
}
.hm-hot__row.is-active {
background: var(--hm-primary-wash-strong);
box-shadow: inset 2px 0 0 var(--hm-primary);
}
.hm-hot__rank {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
margin-top: 1px;
padding: 0 5px;
border-radius: 7px;
color: #fff;
font-size: 11.5px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.hm-hot__main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.hm-hot__place {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 12.5px;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-hot__line {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
font-size: 11.5px;
color: var(--hm-text-2);
}
.hm-hot__line b {
font-size: 13px;
color: var(--hm-primary-deep);
font-variant-numeric: tabular-nums;
}
.hm-hot__line em {
font-style: normal;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
.hm-hot__line--sub {
font-size: 11px;
}
.hm-hot__spark {
display: block;
margin-top: 2px;
max-width: 100%;
height: auto;
overflow: visible;
}
/*
* 清单行里的关键数字高亮。
*
* 一行念了七八个读数,全用同一号灰字,要看的那个数得跟着一串说法里逐个找。这里分两级拎出来:
* 1) 每个读数后面那个数(<i>)从标签词里分离:正文色、半粗,前后的说法和单位仍是浅灰小字。
* 2) 当前「排序依据」真正用来排名的那一列(.is-key)再上主色、加重,
* 高亮指的数和清单顶部那句排名说明念的是同一个 —— 换档位,高亮跟着换,名次就有看得见的依据。
* 曾经在这里给「偏离幅度」那一列单独配过一套中性灰,现在分数已按要求撤下,
* 排名依据也跟着删掉那一档,界面上不再出现没有对应读数的排序。
* 红橙蓝仍然只属于左侧的名次徽标和趋势线;这里只用主色,避免造出第二套排名。
*/
.hm-hot__line em i {
font-style: normal;
color: var(--hm-text-1);
font-weight: 600;
}
.hm-hot__line em.is-key,
.hm-hot__line em.is-key i {
color: var(--hm-primary-deep);
}
.hm-hot__line em.is-key i {
font-weight: 700;
}
.hm-hot__line b.is-key {
font-size: 14px;
font-weight: 700;
}
/*
* 车辆属性环图(自绘 SVG,零依赖)。
*
* 环图与图例横排:环讲「占多大一块」,图例把每一类念成「名字 + 占比」,
* 两者并排比上下叠省一半高度,右栏本来就窄。图例每行是按钮,和榜单「点一行看这一档」同一动线。
* 未填那一档用最浅的灰(--hm-text-3),与有色分类明确区分,也和底色环(--hm-divider)错开两档灰。
*/
.hm-donut {
display: flex;
align-items: center;
gap: 14px;
padding: 10px 0 12px;
}
/*
* 环与榜并排那一档(查看全部 · 车辆属性):环收进左列,右边那份榜自己就是图例,
* 所以这里不再留上下内衬 —— 内衬是给「环独占一行」时撑开呼吸用的,
* 并排之后它只会把这一行顶得比右边的榜还高。
*/
.hm-donut--inline {
padding: 0;
}
/*
* ------------------------------- 车辆属性 · 查看全部 -------------------------------
*
* 这一屏把「交叉构成」与「单维分布」分成两个页签(见 VehicleBoard)。样式只做三件事:
* 顶部一句话与切换器并成一条、长口径收进「?」;组合卡窄抽屉改单列;
* 单维分布默认给三张速览卡,点「展开」才铺完整环+榜。
*/
.hm-veh__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
/* 窄抽屉:句子和切换器叠两行,别把一句话挤成三行 */
.hm-veh__bar--stack {
flex-direction: column;
align-items: stretch;
}
.hm-veh__lead {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
font-size: 11.5px;
line-height: 1.6;
color: var(--hm-text-3);
}
.hm-veh__lead b {
font-weight: 600;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
.hm-veh__bar .ant-segmented {
flex: none;
}
.hm-veh__note {
margin-bottom: 10px;
font-size: 11px;
line-height: 1.6;
color: var(--hm-text-3);
}
.hm-veh__foot {
margin-top: 8px;
font-size: 10.5px;
line-height: 1.6;
color: var(--hm-text-3);
}
/*
* 交叉构成页下方的「整体构成」:一枚环图 + 一句读法,把组合卡下面那段留白填满。
* 环自带图例,所以这里只管分区(上边线 + 留白)与标题行,不再另画一份图例。
*/
.hm-veh__overall {
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid var(--hm-divider);
}
.hm-veh__overall-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.hm-veh__overall-total {
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
}
/* 三维合计:一行三格,等宽铺开、数字等宽对齐。
卡头报的是「每类车多少起」,这里报的是「整批命中里有多少能交叉」—— 两个量级分开摆,
不会被读成又一张分类明细。 */
.hm-veh__sum {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
margin-top: 14px;
padding: 10px 12px;
border: 1px solid var(--hm-divider);
border-radius: 8px;
background: var(--hm-bg);
font-size: 10.5px;
color: var(--hm-text-3);
text-align: center;
}
.hm-veh__sum b {
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
/* 窄抽屉三格挤成省略号,改成一行一句 */
.hm-veh__sum--stack {
grid-template-columns: 1fr;
text-align: left;
}
.hm-veh__back {
margin: 0 0 12px;
padding: 0;
border: 0;
background: none;
font: inherit;
font-size: 11.5px;
color: var(--hm-primary);
cursor: pointer;
}
.hm-veh__back:hover {
text-decoration: underline;
}
.hm-veh__tiles {
display: flex;
flex-direction: column;
gap: 9px;
}
.hm-veh__tile {
padding: 9px 11px 10px;
border: 1px solid var(--hm-divider);
border-radius: 8px;
background: var(--hm-bg);
}
.hm-veh__tile-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
}
.hm-veh__tile-name {
flex: none;
font-size: 12.5px;
font-weight: 500;
color: var(--hm-text-1);
}
.hm-veh__tile-lead {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
font-variant-numeric: tabular-nums;
}
/* 一根 100% 分段条:段宽按该维各档起数分配(flex-grow 取起数、basis 0),
未填那一档用中性灰。与面板「车辆属性构成」同一套念法,只是这里每段直接点进清单。 */
.hm-veh__tile-bar {
display: flex;
gap: 1px;
height: 9px;
border-radius: 5px;
overflow: hidden;
background: var(--hm-divider);
}
.hm-veh__tile-seg {
flex-basis: 0;
min-width: 0;
height: 100%;
margin: 0;
padding: 0;
border: 0;
cursor: pointer;
transition: opacity 0.12s ease;
}
.hm-veh__tile-seg:hover {
opacity: 0.75;
}
.hm-veh__tile-seg:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: -1px;
}
.hm-veh__tile-seg--un {
background: var(--hm-text-3);
}
.hm-veh__tile-foot {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-top: 8px;
font-size: 10.5px;
color: var(--hm-text-3);
font-variant-numeric: tabular-nums;
}
.hm-veh__tile-more {
flex: none;
margin: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
color: var(--hm-primary);
cursor: pointer;
white-space: nowrap;
}
.hm-veh__tile-more:hover {
text-decoration: underline;
}
/*
* 车型组合:按车种大类分组,一类一张卡片。
*
* 为什么是「车种大类 → 卡内再按使用性质 × 是否新能源分行」,而不是几十种组合穷举成卡片墙:
* 读的人第一句是「什么车出事多」,客车 / 货车 / 特种车 / 摩托车是四个记得住的筐,
* 筐里再问「营业还是非营业、新能源还是燃油」是顺着同一句话往下走;穷举几十张卡,
* 他得自己在脑子里归并回这四个筐,那一屏等于没做。
*
* 列数交给 auto-fill:四类车通常一行铺满,车种更多时自动换行。
* 抽屉窄到紧凑档(< 500,见 drawerWidth.ts)时改单列:392 那一档正文只有 ~360,
* 两列每卡 ~170px,组合名要折两行、条也只剩几十像素,跨卡比长短就没意义了;
* 单列后每张卡拿满宽度,名字一行读完、条长也拉得开。
*/
.hm-combo {
display: grid;
/* 132 是四类车(客车 / 货车 / 特种车 / 摩托车)在 563px 宽的抽屉里排满一行的上限:
4 × 132 + 3 × 9 = 555 ≤ 563,第 5 列则要 696 排不下。
一行摆开不只是省地方 —— 同一行的卡片会被 grid 拉成等高,四张卡的「第 3 行」
也就在同一条基线上,横着比数字时眼睛不用重新找行。 */
grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
gap: 9px;
}
/* 窄抽屉单列:见上面那段说明 */
.hm-combo--stack {
grid-template-columns: 1fr;
}
/*
* 一张卡片 = 一个车种大类。
* 卡头是整卡的地标(名字 + 这一类多少起),点它把地图收窄到这一类车;
* 卡身每一行是「使用性质 · 是否新能源」的一种组合,点它看这一组合的案件清单。
*/
.hm-combo__card {
display: flex;
flex-direction: column;
padding: 7px 9px 8px;
border: 1px solid var(--hm-divider);
border-radius: 8px;
background: var(--hm-bg);
}
.hm-combo__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
width: 100%;
margin-bottom: 5px;
padding: 0 0 6px;
border: 0;
/* 卡头与卡身之间这一道线是唯一的分隔:卡片本身已经有框,再给卡头加底衬就成了三层套娃 */
border-bottom: 1px solid var(--hm-divider);
border-radius: 0;
background: none;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
}
.hm-combo__head:hover .hm-combo__cls {
color: var(--hm-primary);
}
.hm-combo__head:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 1px;
}
.hm-combo__cls {
font-size: 12.5px;
font-weight: 500;
color: var(--hm-text-1);
}
.hm-combo__num {
display: flex;
align-items: baseline;
gap: 4px;
font-size: 12.5px;
font-weight: 500;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
/* 卡头那个「这一类车占全量多少」做成一枚小 pill:它和卡内那些「组合占全量」的读数
不是一个量级,得一眼分开;主色浅洗也让卡头在整张卡里有个落点 */
.hm-combo__num em {
padding: 1px 5px;
border-radius: 999px;
background: var(--hm-primary-wash);
font-style: normal;
font-weight: 500;
font-size: 10px;
line-height: 1.5;
color: var(--hm-primary);
white-space: nowrap;
}
/*
* 一行 = 一种组合:第一行「组合名 + 起数」、第二行是条。
* 条独占第二行而不是跟在名字右边,是因为条要跨卡比长短 —— 它得有整卡的宽度可用,
* 挤在名字右边就只剩三四十像素,跨卡那一比就废了。
*/
.hm-combo__row {
display: grid;
grid-template-columns: 1fr auto;
grid-template-areas:
'sub val'
'track track';
align-items: center;
column-gap: 6px;
row-gap: 3px;
width: 100%;
padding: 3px 2px;
border: 0;
border-radius: 5px;
background: none;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
}
.hm-combo__row:hover {
background: var(--hm-primary-wash);
}
.hm-combo__row:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: -1px;
}
/* 当前筛选下这一类车里没有这种组合:占位保留(行轴要对齐,四张卡才比得起来),但不可点 */
.hm-combo__row.is-empty {
cursor: default;
}
.hm-combo__row.is-empty:hover {
background: none;
}
/*
* 组合名两行封顶,不用省略号。
*
* 「出租客运 · 非新能源」这种十来个字的名字在 132px 的卡里一行放不下,省成
* 「出租客运 · 非新…」等于把两种组合读到同一处 —— 而这一段存在的意义就是区分它们。
* 折行不破坏等高:行轴在所有卡片里是同一套,第 i 行在每张卡上都是同一个名字,
* 折成几行也就一致;跨行的高矮不同不影响比较,因为要横着比的是同序号的那一行。
*/
.hm-combo__sub {
grid-area: sub;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
font-size: 10.5px;
line-height: 1.32;
color: var(--hm-text-2);
}
.hm-combo__val {
grid-area: val;
font-size: 11px;
font-weight: 500;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
.hm-combo__track {
grid-area: track;
display: block;
height: 3px;
border-radius: 1.5px;
background: var(--hm-divider);
overflow: hidden;
}
.hm-combo__track i {
display: block;
height: 100%;
border-radius: 1.5px;
}
/* 这一类里凑不出组合的那部分(某一维未填):量必须有下落,否则「卡片加起来不到这一类」会被读成漏统计 */
.hm-combo__foot {
margin-top: 5px;
padding-top: 5px;
border-top: 1px dashed var(--hm-divider);
font-size: 10px;
color: var(--hm-text-3);
}
/*
* 展开后的一个维度:环在左、榜在右。
* 环和榜念的是同一批数(同色同序),并排之后左右一对就对上了。
* 现在一次只展开一维(默认三张速览卡,见 .hm-veh__tile),不再有六块竖着叠翻两屏的问题。
*/
.hm-dimrow {
display: flex;
align-items: center;
gap: 12px;
}
.hm-dimrow__chart {
flex: none;
}
.hm-dimrow__list {
flex: 1 1 auto;
min-width: 0;
}
.hm-donut__svg {
flex: none;
display: block;
}
/* 段可点:放大命中区、hover 时提一档墨色,告诉人「这是一颗按钮」 */
.hm-donut__arc {
cursor: pointer;
transition: opacity 0.12s ease;
}
.hm-donut__arc:hover {
opacity: 0.8;
}
/* 取数来源那一行:比 tip 更轻 —— 它是核对用的脚注,不该和图注抢注意力 */
.hm-src-note {
margin: -2px 0 6px;
font-size: 11px;
line-height: 1.5;
color: var(--hm-text-3);
word-break: break-all;
}
/* 环心三行:维度名(小、灰)→ 最大一档的占比(大、主色)→ 那一档叫什么
环心直径 95px 上下,占比按 21px 排刚好;再大会压到内圈弧上 */
.hm-donut__center-k {
fill: var(--hm-text-3);
font-size: 10px;
letter-spacing: 0.2px;
}
.hm-donut__center {
fill: var(--hm-text-1);
font-size: 22px;
font-weight: 500;
font-variant-numeric: tabular-nums;
letter-spacing: -0.6px;
}
.hm-donut__center-sub {
fill: var(--hm-text-2);
font-size: 10.5px;
}
/* 小环(环与榜并排那一档):环心直径只有 ~62px,22px 的占比会压到内圈的弧上,
三行一起降一档。降的是字号不是内容 —— 三行说的还是「哪一维 / 最大一档占多少 / 叫什么」 */
.hm-donut__svg--sm .hm-donut__center-k {
font-size: 9px;
}
.hm-donut__svg--sm .hm-donut__center {
font-size: 16px;
letter-spacing: -0.3px;
}
.hm-donut__svg--sm .hm-donut__center-sub {
font-size: 9.5px;
}
.hm-donut__legend {
list-style: none;
margin: 0;
padding: 0;
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.hm-donut__item {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
border: none;
background: none;
padding: 3px 4px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
color: var(--hm-text-2);
text-align: left;
}
.hm-donut__item:hover {
background: var(--hm-bg);
color: var(--hm-text-1);
}
.hm-donut__swatch {
flex: none;
width: 9px;
height: 9px;
border-radius: 2px;
}
.hm-donut__label {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hm-donut__val {
flex: none;
min-width: 52px;
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
/* 占比列固定宽度:三列(名字 / 起数 / 占比)右端对齐成一条竖线,
各行的百分比才扫得下来,否则每行都在跳 */
.hm-donut__pct {
flex: none;
width: 42px;
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
}
/* 迷你折线(自绘 SVG,零依赖):24 小时曲线,与柱状图并排,打破「全是柱状图」的单调 */
.hm-miniline {
display: block;
width: 100%;
height: auto;
overflow: visible;
margin-top: 4px;
}
.hm-miniline__dot {
cursor: pointer;
}
.hm-miniline__dot:hover {
r: 3.4;
}
/*
* 风险概览里的三页签(车辆属性 / 空间分布 / 时间规律)。
*
* 右栏只有 ~372px,三个标签要并排而不换行、不挤。antd 默认标签字号与内边距是按宽屏调的,
* 这里收一档:字号跟正文一致、横向内边距减半,标签条本身不再额外占一块高。
* 标签条下方那道分隔线保留,让页签和上面「集中程度」那一块有交界线,不至于糊成一片。
*/
.hm-stat-tabs {
margin-top: 14px;
}
.hm-stat-tabs > .ant-tabs-nav {
margin-bottom: 8px;
}
.hm-stat-tabs > .ant-tabs-nav::before {
border-bottom-color: var(--hm-divider);
}
.hm-stat-tabs .ant-tabs-tab {
padding: 5px 2px;
font-size: 13px;
}
.hm-stat-tabs .ant-tabs-tab + .ant-tabs-tab {
margin-left: 18px;
}
/* 页签内容不能再叠一层上边距:面板里每一块自己带 marginTop,
Tabs 也带一份的话首屏第一段就会被顶下去一大截 */
.hm-stat-tabs .ant-tabs-content-holder {
padding-top: 2px;
}
/*
* 风险概览的头部读数:标准企业 KPI 数据卡。
*
* 上一版堆了渐变底、阴影、hover 上浮、左侧竖条、占比 pill、字距和箭头 —— 全是装饰,
* 不承载信息,反而把「命中多少」这个唯一要看的数挤到第二眼,读起来像生成出来的样板。
* 按 B 端数据卡规范收干净:白底 + 1px 描边 + 8px 圆角,标题与占比一行、数值与操作一行;
* 主色只用在数值和「查看清单」这颗文本按钮上,全页主色覆盖率压到 5% 以内。
* hover 只换边框色与一层极浅底色,不做位移、不做投影、不做缩放。
*/
.hm-hero {
display: block;
width: 100%;
padding: 12px 16px;
background: var(--hm-surface);
border: 1px solid var(--hm-divider);
border-radius: var(--hm-radius);
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
transition:
border-color 120ms ease,
background 120ms ease;
}
.hm-hero:hover {
border-color: var(--hm-primary);
background: var(--hm-surface-sunken);
}
.hm-hero:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 2px;
}
/* 第一行:12px 次文标签 + 12px 占比,左右分栏;不用色块、不用描边、不用字距 */
.hm-hero__top {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
.hm-hero__k {
font-size: 12px;
color: var(--hm-text-2);
}
.hm-hero__meta {
flex: none;
font-size: 12px;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
white-space: nowrap;
}
/* 第二行:30px/600 的数值是这一屏唯一焦点;右端是标准文本按钮(不带图标) */
.hm-hero__row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-top: 6px;
}
.hm-hero__v {
font-size: 30px;
font-weight: 600;
line-height: 1.2;
font-variant-numeric: tabular-nums;
color: var(--hm-primary);
}
.hm-hero__unit {
margin-left: 5px;
font-size: 12px;
font-weight: 400;
color: var(--hm-text-3);
}
.hm-hero__more {
flex: none;
font-size: 12px;
color: var(--hm-primary);
white-space: nowrap;
}
.hm-hero:hover .hm-hero__more {
text-decoration: underline;
}
/*
* 三维构成(所属性质 / 是否新能源 / 车种大类)的紧凑读数行。
*
* 这一块原先是「半数案件来自 N 处」「八成案件来自 N 处」两块 StatTile。
* 换成三维构成之后,每个维度只画一根 100% 横向堆叠条:条内按各档起数分段、
* 一段一色,段宽即这一档在本维里的占比;条下的图例把本维所有类别逐项列出,
* 色块与条上分段一一对应(窄段点不到时也能从图例点)。
* 条上的段、图例行、环弧与图例的落点完全一致(同一份 counts,同一个白名单)。
*/
/* 车辆属性构成是独立卡片式模块:与上方「前 3 区 / 前 5 街道」读数卡不是同一维度
(一个是空间集中程度,一个是车辆属性结构),单框出来 + 上沿分隔线,读的时候自然分成两块。 */
.hm-subhead {
display: flex;
align-items: baseline;
gap: 8px;
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid var(--hm-divider);
font-size: 12px;
}
.hm-subhead__k {
font-weight: 600;
color: var(--hm-text-1);
}
.hm-comp {
margin-top: 12px;
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 10px;
background: var(--hm-primary-wash);
border: 1px solid var(--hm-primary-wash-strong);
border-radius: var(--hm-radius);
}
.hm-comp__row {
display: grid;
/* 70px 刚好容下「是否新能源」五个字;58px 时那一行会折成两行,
三条构成行的高度就参差了 */
grid-template-columns: 70px minmax(0, 1fr);
grid-template-rows: auto auto;
column-gap: 8px;
row-gap: 4px;
align-items: center;
}
.hm-comp__name {
grid-row: 1 / span 2;
font-size: 12px;
color: var(--hm-text-3);
line-height: 1.3;
white-space: nowrap;
}
/* 一个维度一根 100% 堆叠条:段宽由 flex-grow(各档起数)分配,段与段之间
留 1px 缝露出卡片底色,整条圆角裁切。段本身是 button,去掉浏览器默认外观只留颜色。 */
.hm-comp__bar {
grid-column: 2;
grid-row: 1;
display: flex;
gap: 1px;
width: 100%;
height: 10px;
border-radius: 4px;
overflow: hidden;
background: transparent;
}
.hm-comp__seg {
min-width: 1px;
height: 100%;
margin: 0;
padding: 0;
border: none;
border-radius: 0;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
transition: filter 0.12s ease;
}
.hm-comp__seg:hover,
.hm-comp__seg:focus-visible {
filter: brightness(1.18);
outline: none;
}
/* 图例:本维所有类别逐项列出,色块与条上分段一一对应;窄段点不到时从这里点 */
.hm-comp__legend {
grid-column: 2;
grid-row: 2;
display: flex;
flex-wrap: wrap;
gap: 2px 10px;
min-width: 0;
}
.hm-comp__lg {
display: inline-flex;
align-items: center;
gap: 4px;
max-width: 100%;
margin: 0;
padding: 1px 3px;
border: none;
border-radius: 4px;
background: transparent;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
transition: background 0.12s ease;
}
.hm-comp__lg:hover {
background: var(--hm-row-hover, rgba(70, 83, 162, 0.08));
}
.hm-comp__dot {
flex: none;
width: 8px;
height: 8px;
border-radius: 2px;
}
.hm-comp__lgName {
font-size: 11px;
color: var(--hm-text-2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hm-comp__lgVal {
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
white-space: nowrap;
}
/* --------------------------- 展开行:一条案件的全部字段 --------------------------- */
/*
* 行上只留「什么时候、在哪儿、什么性质的车、定位」四件事,剩下的一次展开看全。
* 这里是核对用的字段表,不是概览:两列起排、按容器宽度自动增列,
* 值一律等宽数字,长值(案件号、坐标、地址)允许在任意字符处折行,
* 因为缩成省略号就等于没列出来。
*/
.hm-rowdetail {
padding: 2px 2px 4px 0;
}
.hm-rowdetail__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
gap: 7px 18px;
}
.hm-rowdetail__item {
min-width: 0;
}
/* 地址不参与分栏:它比别的字段长一个量级,挤在 126px 里会折成七八行 */
.hm-rowdetail__item--wide {
grid-column: 1 / -1;
}
.hm-rowdetail__k {
display: block;
font-size: 11px;
line-height: 1.4;
color: var(--hm-text-3);
}
.hm-rowdetail__v {
display: block;
font-size: 12px;
line-height: 1.5;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
word-break: break-all;
}
.hm-rowdetail__v--wrap {
word-break: break-word;
}
.hm-rowdetail__foot {
display: flex;
align-items: center;
gap: 10px;
margin-top: 8px;
}
.hm-rowdetail__foot .hm-locate {
padding-left: 0;
}
.hm-rowdetail__tip {
font-size: 11px;
color: var(--hm-text-3);
}
/* 展开后那一行本身不再画下边框,免得和展开区之间出现两道线 */
.hm-drawer-glass .ant-table-tbody > tr.ant-table-expanded-row > td {
border-bottom: none;
}
/* ============================================================
* 营运区分 · 一级比例条 + 二级领地卡(自绘,零依赖)
*
* 早先这里是双层同心环(内圈 营运/非营运、外圈 营运内细分),读不懂的根子在编码:
* ① 同心环讲的是「同一整体的层级细分」,而这两级的分母根本不同(一级是全量、
* 二级是营运),同心这个前提一破,外圈铺满整圈就被读成「占全量的比例」;
* ② 弧长是最难比准的一种编码,两三块比大小不该用它;
* ③ 内圈那一块营运借用的是出租/租赁的色,同一个蓝在两级里指的不是同一件事;
* ④ 环心 62px 里塞三行字,主角那个数反而最小最难读。
* 现在一级用条(长短即大小)+ 28px 主色大数,二级用共同基线的并排条,
* 两级的关系由领地卡那块品牌淡底来界定 —— 界线看得见,不用靠脑补。
* ============================================================ */
.hm-op {
padding: 2px 0 0;
}
/* 一级三个读数都改成 button(点 11:数本身可点,点了把地图收窄到这一类)。
button 自带浏览器那身皮(灰底 / 边框 / 内边距 / 居中文本),不褪掉就会把「读数」
画成「表单控件」,所以这里整套归零,只留可点的反馈。 */
.hm-op__click {
/* 不写 width:一级那两个读数是 .hm-op__head 的 flex 子项,写死 100% 会把右侧那档挤出
space-between 的布局。两行叠起来靠 display:block 就够了。 */
display: block;
margin: 0;
padding: 0;
border: none;
background: none;
font: inherit;
color: inherit;
/* 右侧那两档要继续右对齐,不能被 button 默认的居中盖掉 */
text-align: inherit;
cursor: pointer;
}
.hm-op__click:hover .hm-op__lead-v,
.hm-op__click:hover .hm-op__side-v {
/* 虚线:与命中案件那块同一套「此处可点、点了不是跳走」的记号 */
text-decoration: underline dashed;
text-underline-offset: 4px;
}
.hm-op__click:focus-visible {
outline: 2px solid var(--hm-accent-cyan);
outline-offset: 3px;
border-radius: 4px;
}
/* 右侧一档 = 上面那行(标签 + 占比)+ 下面那行(起数),两行同属一颗按钮 */
.hm-op__side-unit {
display: block;
}
.hm-op__side-unit + .hm-op__side-unit {
margin-top: 8px;
}
/* 一级两个读数:营运是主角(36px 主色),非营运是参照系(降两号但仍可读)。
营运靠左、非营运靠右,与下面比例条的左右两截同侧 —— 靠对齐认领,条里不再写标签。
字号整体抬了一档:这一行的两个数是整块要被记住的东西,原先 28 / 15 那两档
在面板里和下面的条、表混在一起,读的时候还得先找一眼哪个是主角。 */
.hm-op__head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.hm-op__lead,
.hm-op__side {
min-width: 0;
}
.hm-op__side {
text-align: right;
}
.hm-op__lead-row,
.hm-op__side-row {
display: flex;
align-items: baseline;
gap: 7px;
}
.hm-op__side-row {
justify-content: flex-end;
}
.hm-op__lead-k,
.hm-op__side-k {
font-weight: 600;
letter-spacing: 0.3px;
}
.hm-op__lead-k {
font-size: 13px;
color: var(--hm-text-2);
}
.hm-op__side-k {
font-size: 12px;
color: var(--hm-text-3);
}
.hm-op__lead-v {
font-size: 36px;
font-weight: 700;
line-height: 1;
color: var(--hm-primary);
font-variant-numeric: tabular-nums;
}
.hm-op__side-v {
font-size: 22px;
font-weight: 600;
line-height: 1;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
/* 起数跟着抬:百分比说的是「占多少」,起数说的是「有多少」,
两个数是一对,差一号还行、差三号就会只读其中一个 */
.hm-op__lead-n {
display: block;
margin-top: 6px;
font-size: 14px;
font-weight: 600;
color: var(--hm-text-1);
font-variant-numeric: tabular-nums;
}
.hm-op__side-n {
display: block;
margin-top: 6px;
font-size: 13px;
font-weight: 600;
color: var(--hm-text-2);
font-variant-numeric: tabular-nums;
}
/* 一级比例条:flex-grow 按起数分配,宽度比就是起数比。
截与截之间留 2px 缝,两截各自成块,谁到哪儿为止不用数像素 */
.hm-opbar {
display: flex;
gap: 2px;
height: 18px;
}
.hm-opbar__seg {
flex-basis: 0;
min-width: 3px;
padding: 0;
border: none;
border-radius: 4px;
cursor: pointer;
transition: opacity 0.12s ease;
}
.hm-opbar__seg:hover {
opacity: 0.82;
}
/* 一级没有数(命中 0 起)时留一根等宽的分隔色底,不让这块塌成一条缝 */
.hm-opbar__seg--empty {
flex-grow: 1;
background: var(--hm-divider);
cursor: default;
}
/* 二级领地卡:品牌淡底 = 营运的领地界线。
卡外的条讲「营运占全量多少」,卡里的条讲「营运里各占多少」 */
.hm-opcard {
margin-top: 11px;
padding: 9px 10px 10px;
border-radius: 8px;
background: var(--hm-primary-wash);
}
.hm-opcard__head {
font-size: 11px;
color: var(--hm-text-3);
margin-bottom: 7px;
}
.hm-opcard__list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.hm-oprow {
display: grid;
grid-template-columns: 70px minmax(0, 1fr) 46px 40px;
align-items: center;
gap: 6px;
width: 100%;
height: 24px;
padding: 0 4px;
border: none;
border-radius: 4px;
background: none;
font-size: 12px;
color: var(--hm-text-2);
text-align: left;
cursor: pointer;
}
/* 行底是品牌淡底,hover 用纯白提一档 —— 在这块淡底上,白比灰更亮得出来 */
.hm-oprow:hover {
background: var(--hm-surface);
}
.hm-oprow__name {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
font-size: 11px;
color: var(--hm-text-1);
}
.hm-oprow__swatch {
flex: none;
width: 8px;
height: 8px;
border-radius: 2px;
}
.hm-oprow__label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 轨道铺满整行 = 营运 100%,所以「条满格」在每一行上都成立 */
.hm-oprow__track {
display: block;
height: 9px;
border-radius: 3px;
overflow: hidden;
}
.hm-oprow__fill {
display: block;
height: 100%;
border-radius: 3px;
}
.hm-oprow__val {
text-align: right;
font-variant-numeric: tabular-nums;
color: var(--hm-text-1);
}
.hm-oprow__pct {
text-align: right;
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--hm-text-3);
}
/* 开关关着时的货车 / 特种车两行:整行压到最浅,读成「这两档不进当前口径」,
但仍在榜上 —— 不列会让人以为这两档车不存在 */
.hm-oprow.is-dim .hm-oprow__name,
.hm-oprow.is-dim .hm-oprow__val {
color: var(--hm-text-3);
}
/* -------------------------- 营运合计行 --------------------------
* 合计不是营运里的第六档,它是上面那几档的**和**,也是这一屏所有「占营运比」的分母。
* 所以它必须看上去「不属于上面那组」:一道上边线把它从明细里摘出来,
* 文字加重、数字取主色;轨道铺满主色,当作「100% 的基准条」——
* 上面每一行的条都是相对这一条在量,「条满格 = 全部营运」这句话到这里才有了实体参照。
* -------------------------------------------------------------- */
.hm-opcard__total-li {
margin-top: 3px;
padding-top: 4px;
border-top: 1px solid var(--hm-primary-line, rgba(70, 83, 162, 0.28));
}
.hm-oprow--total .hm-oprow__name,
.hm-oprow--total .hm-oprow__val {
font-weight: 700;
color: var(--hm-primary);
}
/* 合计行的占比固定 100%,不必再强调一次,压到最浅 */
.hm-oprow--total .hm-oprow__pct {
color: var(--hm-text-3);
}
.hm-op__toggle {
display: flex;
align-items: center;
gap: 6px;
margin-top: 10px;
font-size: 11px;
color: var(--hm-text-3);
}
/* ============================================================
* 逐类明细表(抽屉 · 营运一张、非营运一张)
*
* 六列:细分类别 / 构成 / 车辆数 / 占比 / 新能源 / 新能源占比。
* · 名称列吃掉剩余宽度(名字最长的是「单位自用客车」六个字加一个「?」);
* · 「构成」那一列是条:判定口径改挂到行内那个「?」之后,这一列就空出来了,
* 与其留白,不如把「占多少」画出来 —— 一列里同时有长度和数字,
* 比大小看长短、要精确看数字,不用在两者之间换算;
* · 后四列窄且右对齐:数字列右端成一条竖线才扫得下来。
*
* 底色用领地卡那一块品牌淡底,两张表与上面的营运区分卡是同一块领地的三个部分 ——
* 三处同色才读得出「这是一件事的三层」,而不是三个各自独立的模块。
* ============================================================ */
/* 两张明细表之间的分组:非营运那张是另一套口径(报表只给总数、内部切法是我们定的),
与营运表拉开一整段并压一条极淡的分隔线,读的时候不会把两张表接成一张。 */
.hm-optable__section {
margin-top: 16px;
}
.hm-optable__section--spaced {
margin-top: 32px;
padding-top: 20px;
border-top: 1px solid var(--hm-divider);
}
.hm-optable__title {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 5px;
}
.hm-optable {
border: 1px solid var(--hm-primary-wash-strong);
border-radius: 8px;
background: var(--hm-primary-wash);
overflow: hidden;
}
.hm-optable__row {
display: grid;
grid-template-columns: minmax(84px, 1fr) minmax(52px, 1.9fr) 52px 48px 52px 56px;
align-items: center;
gap: 6px;
width: 100%;
padding: 7px 9px;
border: none;
border-bottom: 1px solid var(--hm-divider);
background: none;
font-size: 12px;
color: var(--hm-text-2);
text-align: left;
}
.hm-optable__row:last-child {
border-bottom: none;
}
/* 只有数据行可点:表头点了没有落点;兜底档(其他 / 未填)点了没有正确落点 ——
这两种都不给 hover 反馈,给反馈等于骗人 */
button.hm-optable__row {
cursor: pointer;
}
button.hm-optable__row:hover {
background: var(--hm-surface);
color: var(--hm-text-1);
}
.hm-optable__row--head {
color: var(--hm-text-3);
font-size: 11px;
}
.hm-optable__name {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
color: var(--hm-text-1);
}
.hm-optable__swatch {
flex: none;
width: 9px;
height: 9px;
border-radius: 2px;
}
/* 档名单独成一段:「?」是这一行上另一样可点的东西,不能混进名字里;
名字过长时也只截名字,不截到「?」头上 */
.hm-optable__label {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 判定口径那个「?」:口径长,摆成一列会把每行撑成两行、把右侧数字挤得对不齐,
收进悬浮里两头都占。做成小圆片而不是光一个问号字 —— 它是这一行上唯一可点的另一样东西,
得看得出来是个东西。 */
.hm-oprule {
flex: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 13px;
height: 13px;
border-radius: 50%;
border: 1px solid var(--hm-divider);
background: var(--hm-surface);
color: var(--hm-text-3);
font-size: 10px;
line-height: 1;
cursor: help;
transition:
color 0.12s ease,
border-color 0.12s ease;
}
.hm-oprule:hover {
border-color: var(--hm-primary);
color: var(--hm-primary);
}
/* 表头那个「?」大一档:它收的是一整段口径说明,与行内那个「本档判据」不是一个量级 */
.hm-oprule--head {
width: 15px;
height: 15px;
font-size: 11px;
}
/* 构成那一列的条:与右侧那个百分比同源、同一个分母 */
.hm-optable__bar {
display: block;
min-width: 0;
}
.hm-optable__track {
display: block;
height: 9px;
border-radius: 3px;
background: var(--hm-surface);
overflow: hidden;
}
.hm-optable__fill {
display: block;
height: 100%;
border-radius: 3px;
}
.hm-optable__num {
text-align: right;
font-variant-numeric: tabular-nums;
}
/* 合计行:报表表2 的最末一行(5173 / 占营运 100% / 新能源 3901 / 75.4%),
非营运那张表的合计同理。它不是一档车,是上面那几行的**和**、也是「占比」那一列的分母,
所以看上去必须不属于上面那组:一道上边线 + 比表底再深一档的底色,文字加重取主色。
注意它**不是**最后一张表的最后一行(营运表底下还有非营运),
所以 :last-child 那条去边线规则对它不适用 —— 它自己带的是上边线。 */
.hm-optable__row--total {
border-top: 2px solid rgba(70, 83, 162, 0.3);
background: rgba(70, 83, 162, 0.14);
}
.hm-optable__row--total .hm-optable__name,
.hm-optable__row--total .hm-optable__num {
font-weight: 700;
color: var(--hm-primary);
}
/* ============================================================
* 「统计没跟上」说明块
*
* 数据里有这一维、统计里没算出数时,用它替代那个全 0 的环 / 全 0 的表。
* 画成空图会被读成「业务上就是没有」,而真相往往是页面热更新了、统计进程还停在旧版本
* (统计跑在独立进程里,不吃常规 HMR)。所以这块只讲两件事:不是没有,以及下一步做什么。
* 左侧一道竖线把它和旁边的「口径说明」区分开 —— 后者是告诉你怎么读,前者是告诉你现在读不了。
* ============================================================ */
.hm-stale {
display: flex;
flex-direction: column;
gap: 3px;
padding: 7px 10px 8px;
border-left: 2px solid var(--hm-warn, #d48806);
border-radius: 0 4px 4px 0;
background: var(--hm-bg);
}
.hm-stale__k {
font-size: 12px;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-stale__t {
font-size: 11.5px;
line-height: 1.55;
color: var(--hm-text-3);
}
/* 说明块里的动作:与「查看全部」同一种按钮,只是左对齐(这一行不是列表末尾的更多,
而是这块说明的结论,跟着正文的起始边走) */
.hm-stale__act {
align-self: flex-start;
margin-top: 2px;
}