design.css
90.8 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
/**
* 全局设计变量 + 内部组件库(@hm/ui)的样式。
*
* 组件样式放在全局而不是 @hm/ui 包内,是个有意的取舍:这是单应用的内部组件库,
* 不需要被第三方消费,全局 CSS 变量 + 语义类名已经足够,还能让主题切换只改一处。
* 若将来要发包给别的项目,再拆 CSS-in-JS 或 CSS Module 不迟。
*
* 色值取自深城交官网主样式表(详见 src/features/heatmap/map/palette.ts 的说明)。
*/
: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;
--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-map__stat-chip)的实测外框高:6+6 内边距 + 1+1 边框
+ 11px 文字的一行 ≈ 30px。清单通栏拉开时,密度图例要让到它上面,就按这个高度抬。 */
--hm-chip-h: 30px;
--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:
'PingFang SC',
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
'Microsoft YaHei',
sans-serif;
-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;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 12px 14px 10px;
background: var(--hm-glass-side-strong);
border-bottom: 1px solid var(--hm-glass-border);
}
.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: 14px;
}
.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;
overscroll-behavior: contain;
}
/* 贴边 body(清单类):标题行与排序说明钉住,只有列表滚 ——
* 滚起来之后「按什么排序」这句话不该跟着滑走。 */
.hm-panel--fluid > .hm-panel__body--flush {
display: flex;
flex-direction: column;
overflow: hidden;
}
.hm-panel--fluid > .hm-panel__body--flush > * {
flex: 0 0 auto;
}
.hm-panel--fluid > .hm-panel__body--flush > .hm-hot {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
/* ------------------------------- 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;
}
.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: center;
justify-content: space-between;
gap: 6px;
margin-bottom: 6px;
}
.hm-field__text {
font-size: 12px;
color: var(--hm-text-2);
font-weight: 500;
}
.hm-field__text.is-active {
color: var(--hm-primary);
font-weight: 600;
}
.hm-field__tip {
font-size: 11px;
color: var(--hm-text-3);
}
.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);
}
.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;
}
/*
* 榜下的「查看全部」:文字按钮,不做成实心块。
* 两块榜(区域分布 / 高频街道)共用一个长相,桶卡底部那个「查看全部」也是它 ——
* 同一个动线(点开→右缘抽屉)就该是同一个入口样式。
*/
.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: 5px;
}
.hm-sect__ico {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
font-size: 12px;
line-height: 1;
color: var(--hm-primary);
opacity: 0.68;
}
/*
* 「在地图上看」:一张榜的入口,放在分类标题行右端(抽屉里放标题右侧)。
*
* 为什么不跟「查看全部」挤在同一行末尾:那两颗讲的是两件相反的事 —— 一颗把榜摊在屏幕上、
* 一颗把榜摊在抽屉里,同排就会读成「二选一」。标题行右端正好和标题自己对齐,
* 一眼就知道这颗管的是上面这张榜。
*
* 右栏净宽 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),那里最宽 616px、最窄 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);
}
/* 深底顶栏内的文字统一转亮,保证在毛玻璃之上的可读性 */
.hm-header .hm-brand__title {
color: #f4f6ff;
}
.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;
}
.hm-header__divider {
width: 1px;
height: 22px;
background: rgba(255, 255, 255, 0.22);
}
.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);
}
/** 折叠头整行可点 —— 只让箭头可点的话命中区太小 */
.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__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%;
}
.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;
}
/*
* 清单通栏拉开后,密度图例的三档让位。
*
* 挪去的落点是固定的一个值: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:右下那颗读数胶囊活着的区间(1140 以下它已经跟着清单收起)。它 nowrap、
* 实测 299 宽,右缘让开右栏 444、左缘落在 vw − 743 —— 1360 以下会和挪过来的图例挤进
* 同一行。上限抬到 1380 是给胶囊留一格余量:它会随命中数的位数变宽。
* (标签改成书面说法后短了一两个字,实测宽度只会更小,所以这些阈值现在是偏保守的上限,
* 不会突然出现「按阈值让开了、实际还压着」。)
*
* 这里是「抬一行」而不是「收起一个」:两个都只是浮层,谁也没有非占住底缘不可,
* 分行就能都留着 —— 比让图例或读数凭空消失诚实。 */
@media (min-width: 1141px) and (max-width: 1380px) {
.hm-body.is-dock-open .hm-map__legend,
.hm-body.is-dock-open .hm-map__legend-chip {
bottom: calc(var(--hm-rail-gap) + var(--hm-chip-h) + 8px);
}
}
.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;
}
.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;
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__foot {
position: absolute;
right: calc(var(--hm-rail-gap) + var(--hm-tab-w) + var(--hm-rail-inset) + 10px);
bottom: var(--hm-rail-gap);
z-index: 12;
/* 跟右栏同速:浮层慢半拍会在面板已经到位后还在往右滑,看着散 */
transition: right 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
/* 两栏都拉开时,中间只剩一条缝,浮层更没地方站。
*
* 左清单 372 + 右面板连把手 444 = 832,视口要再宽出「胶囊 299 + 留白 8 + 图例
* 那一侧的呼吸位」才容得下浮层,算下来是 ~1140px。窄于此的话,工具条会从右栏
* 左边一路伸进清单底下(实测 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,
.hm-body.is-dock-open .hm-map__foot {
display: none;
}
}
/* 展开操作区后,底缘两颗胶囊谁先收起。
*
* 低于 RAIL_MIN_WIDTH 会自动收起面板,但点页签 / 按 1·2·3 仍能强行展开,
* 于是浮层只有「让开面板」一条路:面板 372 + 把手 46 + 留白 26 = 444px。
* 剩下的宽度里,右下那颗「热力权重点」胶囊 nowrap、实测 299px,而左下的密度图例
* 实测 206px 宽、常驻左缘不放行 —— 胶囊要让开「444 + 299 + 206 + 8」= 957px,
* 再加它自身随命中数位数浮动,阈值取 974。
* (清单也拉开时图例不在这条算式里:它已经挪到清单右侧那一列,而那个宽度下胶囊
* 本来就被上面 max-width:1140 那条收掉了。)
*
* 胶囊只是读数(配 Tooltip 解释口径),收起不丢功能;右栏里本来就有同样的
* 命中/剔除统计。关掉页签它就回来。 */
@media (max-width: 974px) {
.hm-body.is-rail-open .hm-map__foot {
display: none;
}
}
/* 更窄时连左上工具条也没地方放了:它实测 277px,要让开 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__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;
}
/* ------------------------------- 其它 ------------------------------- */
.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),只有图横向超宽时它自己横向滚 —— 横向和竖向各一条,
* 不会套出双层滚动。
*/
/* 两组切换:左边换切法、右边换读法,中间拉开、各自贴左右缘,一眼能看出是两件事。
底衬沿用清单筛钮那张浅卡片,同一种「压在说明和图之间的附加层」 */
.hm-time-ctl {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
margin: 18px 0 12px;
padding: 9px 12px;
background: rgba(255, 255, 255, 0.4);
border: 1px solid var(--hm-glass-border);
border-radius: var(--hm-radius);
}
.hm-time-ctl__cell {
display: flex;
flex-direction: column;
gap: 5px;
}
.hm-time-ctl__cell--right {
align-items: flex-end;
}
.hm-time-ctl__label {
font-size: 11px;
color: var(--hm-text-3);
}
/* 口径行:说清分母、比的是谁、怎么读,避免「按天的柱子比按小时的高」被读成重要性 */
.hm-time-foot {
margin-top: 10px;
font-size: 10.5px;
line-height: 1.6;
color: var(--hm-text-3);
}
/*
* 图本体(柱状 / 折线共用一张 SVG)。
*
* 颜色只分四层:数据(品牌靛)、参照(浅靛虚线 = 平均)、峰值(金色,只用在这一处)、
* 悬停(整列一层 wash)。没有第二套色阶,长短与高低是这两张图真正的读数手段。
*/
.hm-tc {
margin-top: 2px;
}
/*
* 读数行:鼠标停在哪一档,那一档的数字就写在这里,而不是每根柱子上贴一个 ——
* 一百八十天贴一百八十个数,谁也读不了。min-height 撑住空档,
* 免得「有悬停 / 没悬停」之间把下面的图上下推。
*/
.hm-tc__readout {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 4px 10px;
min-height: 22px;
margin-bottom: 6px;
font-size: 11.5px;
color: var(--hm-text-2);
font-variant-numeric: tabular-nums;
}
.hm-tc__readout-label {
font-size: 12.5px;
font-weight: 600;
color: var(--hm-text-1);
}
.hm-tc__readout-value {
font-size: 14px;
color: var(--hm-primary);
}
.hm-tc__readout-bit {
color: var(--hm-text-3);
}
/* 「点一下看这一档的案件清单」只在悬停时出现:平时它是重复说明,悬停时它正好接住下一句想问的话 */
.hm-tc__readout-cta {
font-size: 11px;
font-weight: 600;
color: var(--hm-primary);
}
.hm-tc__readout-idle {
color: var(--hm-text-3);
}
/* 档数多、图比窗口宽时才有这句:让人知道右边还有内容,而不是图到此为止 */
.hm-tc__scroll-hint {
margin-left: auto;
font-size: 10.5px;
color: var(--hm-text-3);
}
.hm-tc__scroll {
overflow-x: auto;
overflow-y: 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;
}
/* ------------------------------- 黑点降噪 ------------------------------- */
/* 面板里的说明性文字。统一走 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;
}
/* 分析结论条:滤掉了多少、留下多少,是这一功能唯一的「效果证明」,所以做成一行紧凑读数 */
.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 12px;
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);
}
.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);
}
.hm-hot__sort {
padding: 8px 14px;
font-size: 11px;
line-height: 1.6;
color: var(--hm-text-3);
border-bottom: 1px dashed var(--hm-divider);
}
.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;
}