design.css
42.7 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
/* 令牌唯一真源:@uj/design-tokens/tokens.css(main.tsx 先于本文件引入)。
本文件只做主壳的布局与组件外观,不再重复定义任何 --uj-* 变量。 */
* {
box-sizing: border-box;
}
/* 纤细克制的滚动条 */
* {
scrollbar-width: thin;
scrollbar-color: #c9d2e0 transparent;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: #c9d2e0;
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background: #aeb9cc;
}
::-webkit-scrollbar-track {
background: transparent;
}
/* 品牌渐变 */
.uj-brand-gradient {
background: linear-gradient(160deg, #0b1437 0%, #16245a 100%);
}
/* 自绘 SideNav 后这一块已无对应 DOM:原先覆盖 .ant-menu-inline 选中态的三条规则
连同「圆角/高度由 Menu token 下发」的注释一并删除,不留死规则当假证据。
侧栏现在的全部样式在下面「侧栏导航(自绘 SideNav)」段。 */
/* ============ 登录页 ============ */
.uj-login-wrap {
min-height: 100vh;
display: flex;
}
.uj-login-aside {
position: relative;
overflow: hidden;
width: 38%;
max-width: 520px;
min-width: 360px;
/* 墙面:底色斜向渐变;贴近地面处(底部)压一层暗,使"墙根"在转角前先入阴影,转角更成立 */
background:
linear-gradient(180deg, rgba(2, 6, 18, 0) 74%, rgba(2, 6, 18, 0.4) 100%),
linear-gradient(160deg, #0b1437 0%, #16245a 100%);
color: #fff;
padding: 44px 44px 20px;
display: flex;
flex-direction: column;
}
/* 背景光斑移到伪元素:JSX 里少两个 div,层级由 z-index 统一收口(内容 z-index:1) */
.uj-login-aside::before,
.uj-login-aside::after {
content: '';
position: absolute;
border-radius: 50%;
filter: blur(70px);
pointer-events: none;
}
.uj-login-aside::before {
width: 280px;
height: 280px;
right: -60px;
top: -40px;
background: #2b5ce6;
opacity: 0.3;
}
.uj-login-aside::after {
width: 220px;
height: 220px;
left: -40px;
bottom: -30px;
background: #5b8def;
opacity: 0.24;
}
.uj-login-brand,
.uj-login-greet,
.uj-login-hero {
position: relative;
z-index: 1;
}
/* 品牌区:压到「页眉」层级,不再和大标题抢戏;右侧渐隐细线把这一行收住 */
.uj-login-brand {
display: flex;
align-items: center;
gap: var(--uj-space-module, 10px);
font-size: 16px;
font-weight: 600;
letter-spacing: 2px;
color: rgba(255, 255, 255, 0.92);
}
.uj-login-brand::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}
/* 招呼 + 日期:上移靠近 logo,作为页眉下的次级信息行,左对齐与品牌区对齐 */
.uj-login-greet {
text-align: right;
margin-top: 18px;
font-size: 14px;
letter-spacing: 1.5px;
color: rgba(255, 255, 255, 0.62);
}
/* ---- 门店覆盖点阵(左栏下半部分背景层,非小卡片;左淡右深) ---- */
.uj-login-coverage {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
pointer-events: none;
/* 顶部渐隐只占最上 10%:必须保住远景收敛区(俯视感的来源),
之前 70% 把远处收拢的点全抹掉了,只剩平铺散点 */
-webkit-mask-image: linear-gradient(to top, #000 90%, transparent 100%);
mask-image: linear-gradient(to top, #000 90%, transparent 100%);
}
.uj-login-coverage svg {
display: block;
/* width:100% + height:auto:高度由 viewBox 宽高比(600×510)决定,永远不拉伸、不裁切、左右到边 */
shape-rendering: geometricPrecision;
}
/* 基站核心的青绿脉冲扩散(雷达 ping):从实心核边缘(5px)只扩到内环半径的一半(12.5px);
环 r=5,故 scale 终值 2.5 = 12.5px,不越过 25px 内环;描边用 non-scaling-stroke 保持细环;尊重 reduced-motion */
@keyframes cov-ping {
0% {
transform: scale(1);
opacity: 0.6;
}
70% {
opacity: 0.2;
}
100% {
transform: scale(2.5);
opacity: 0;
}
}
.uj-cov-pulse {
transform-box: fill-box;
transform-origin: center;
animation: cov-ping 3.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.uj-cov-pulse {
animation: none;
opacity: 0;
}
}
/* 右上留白楔形区点缀星点的轻微闪烁,克制不抢戏;尊重 reduced-motion */
@keyframes cov-twinkle {
0%,
100% {
opacity: 0.45;
}
50% {
opacity: 0.95;
}
}
.uj-cov-star-tw {
animation: cov-twinkle 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.uj-cov-star-tw {
animation: none;
}
}
/* 核心枢纽的呼吸光晕:缓慢明暗+轻微缩放,作为整图的视觉焦点;尊重 reduced-motion */
@keyframes cov-core {
0%,
100% {
opacity: 0.42;
transform: scale(1);
}
50% {
opacity: 0.68;
transform: scale(1.12);
}
}
.uj-cov-core {
transform-box: fill-box;
transform-origin: center;
animation: cov-core 4.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.uj-cov-core {
animation: none;
}
}
/* ---- 底部主张区(主张标题) ---- */
/* margin-top:auto 把 brand+greet 顶到上方、hero+foot 整体下沉到底部,中部留白 */
.uj-login-hero {
margin-top: auto;
}
/* 底部主张区:价值点列表左对齐;门店覆盖点阵已改为 aside 下半部分背景层(见 LoginCoverage),hero 的 margin-top:auto 把整块沉到底部 */
.uj-login-foot {
margin-top: 28px;
/* 内下边距把价值点列表与底部留出 18px 间隙 */
padding-bottom: 18px;
position: relative;
z-index: 1;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
}
/* 墙地转角地面条已移除:下半部分已由门店覆盖点阵背景承担,aside 自身底部渐变提供收口;
点阵右深左淡,无需再加一条粗地平线 */
.uj-login-foot::before {
display: none;
}
.uj-login-hero::before {
content: '';
display: block;
width: 28px;
height: 2px;
border-radius: 2px;
background: linear-gradient(90deg, #5b8def, rgba(91, 141, 239, 0));
margin-bottom: 16px;
}
.uj-login-hero h1 {
font-size: 26px;
line-height: 1.5;
font-weight: 700;
margin: 0;
letter-spacing: 1px;
color: #fff;
}
/* 价值点:左栏底部脚注区,竖向排列,填补时钟左侧空白 */
.uj-login-feats {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
max-width: 210px;
}
.uj-login-feats li {
display: flex;
align-items: flex-start;
gap: 10px;
}
.uj-login-feats .dot {
margin-top: 7px;
width: 6px;
height: 6px;
border-radius: 50%;
background: #5b8def;
flex: none;
box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}
.uj-login-feats .txt {
display: flex;
flex-direction: column;
gap: 3px;
}
.uj-login-feats b {
font-size: 14px;
font-weight: 600;
color: #fff;
letter-spacing: 0.5px;
}
.uj-login-feats i {
font-style: normal;
font-size: 12px;
line-height: 1.5;
color: rgba(255, 255, 255, 0.6);
letter-spacing: 0.3px;
}
.uj-login-main {
position: relative;
overflow: hidden;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #f4f6fa;
padding: 40px;
}
/* 右侧背景点缀:两枚低透明度柔光圆斑 + 极淡点阵,克制不抢眼 */
.uj-login-main::before,
.uj-login-main::after {
content: '';
position: absolute;
border-radius: 50%;
filter: blur(80px);
z-index: 0;
pointer-events: none;
}
.uj-login-main::before {
width: 360px;
height: 360px;
right: -80px;
top: -100px;
background: rgba(91, 141, 239, 0.16);
}
.uj-login-main::after {
width: 320px;
height: 320px;
left: -90px;
bottom: -120px;
background: rgba(43, 92, 230, 0.12);
}
.uj-login-main {
background-image: radial-gradient(rgba(20, 36, 90, 0.05) 1px, transparent 1px);
background-size: 22px 22px;
}
.uj-login-card {
position: relative;
z-index: 1;
width: 440px;
max-width: 100%;
background: #fff;
border-radius: var(--uj-radius-lg, 8px);
padding: 44px 40px;
box-shadow: var(--uj-shadow-pop);
border: 1px solid var(--uj-border, #e6ebf2);
}
/* 浏览器「记住密码」自动填充后,输入框出现默认淡色背景(淡蓝/淡黄),与白色卡片不搭。
autofill 的淡色必须用 inset 阴影盖——普通 background 改不掉它。
Chrome 聚焦态改用标准 :autofill(无前缀)伪类,故 :-webkit-autofill 与 :autofill 都要覆盖,
否则一聚焦淡色就重现。文字/光标保持深色,保证账号密码可读。 */
.uj-login-card input:-webkit-autofill,
.uj-login-card input:-webkit-autofill:hover,
.uj-login-card input:-webkit-autofill:focus,
.uj-login-card input:-webkit-autofill:active,
.uj-login-card input:autofill,
.uj-login-card input:autofill:hover,
.uj-login-card input:autofill:focus,
.uj-login-card input:autofill:active {
-webkit-text-fill-color: #1f2d4d !important;
caret-color: #1f2d4d !important;
-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
box-shadow: 0 0 0 1000px #fff inset !important;
transition:
background-color 9999s ease-in-out 0s,
color 9999s ease-in-out 0s;
}
@media (max-width: 880px) {
.uj-login-aside {
display: none;
}
}
/* ============ 应用骨架:Sider ============ */
.uj-sider {
position: relative;
display: flex;
flex-direction: column;
/* 三层背景:品牌区一道极淡的径向光弧(不是横贯整条的亮带)+ 自上而下收敛的近实色。
菜单区保持近实色保证可读性,层次交给光弧、左缘标尺、章节刻度与激活域淡染。 */
background:
radial-gradient(132% 46% at -10% -6%, rgba(43, 92, 230, 0.28), rgba(43, 92, 230, 0) 66%),
linear-gradient(180deg, #0b1437 0%, #0d1739 52%, #09112e 100%);
box-shadow: 4px 0 20px -14px rgba(6, 12, 38, 0.5);
/* 侧栏已改为自绘 SideNav(layouts/SideNav.tsx):所有几何量由下面的 .uj-* 规则定义,
不再依赖 ConfigProvider 的 Menu token,也不覆盖任何 .ant-* 组件内部盒模型。 */
}
/* 左缘 1px 索引标尺:与章节刻度同一套语言,给纯色侧栏一条可读的纵向基准。
z-index: 0 保证它压在背景上、但不盖住任何刻度与文字。 */
.uj-sider::before {
content: '';
position: absolute;
left: 0;
top: 56px;
bottom: 46px;
width: 1px;
z-index: 0;
pointer-events: none;
background: linear-gradient(
180deg,
rgba(91, 141, 239, 0.3),
rgba(198, 220, 255, 0.07) 26%,
rgba(198, 220, 255, 0.07) 74%,
rgba(91, 141, 239, 0.12)
);
}
.uj-sider > .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100%;
}
/* 品牌区 */
.uj-sider-brand {
height: 56px;
flex: none;
display: flex;
align-items: center;
gap: var(--uj-space-module, 10px);
padding: 0 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.uj-sider-brand.is-collapsed {
justify-content: center;
padding: 0;
}
.uj-sider-brand-text {
display: flex;
flex-direction: column;
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
}
.uj-sider-brand-text .t {
color: #fff;
font-size: 15px;
font-weight: 700;
/* 中文标题不放大字距;0.5px 只给字标一点呼吸,不再是旧版 1px */
letter-spacing: 0.5px;
}
.uj-sider-brand-text .s {
color: rgba(255, 255, 255, 0.38);
font-size: 10px;
letter-spacing: 0.6px;
/* uppercase 只作用于这行英文副标,中文菜单一律不用 */
text-transform: uppercase;
}
/* ============ 侧栏导航(自绘 SideNav) ============
章节头是固定四列网格:20px 图标 / 1fr 标题槽 / auto 域计数 / 12px 展开指示。
所有一级行的标题槽起点与宽度完全一致、右端也对齐到同一条线,
3/4/5 字标题的长度差被槽内留白吸收,不再表现为右边缘参差。
中文字距一律 0 —— 旧版 .ant-menu-submenu-title 的 letter-spacing: 2px
会把字数差按字数线性放大,那才是「不协调」的直接来源。 */
.uj-nav {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 10px 0 18px;
scrollbar-width: none;
}
.uj-nav::-webkit-scrollbar {
width: 0;
height: 0;
}
/* 长菜单的上下滚动边界提示:只在真的还有内容时出现 */
.uj-nav-fade {
position: absolute;
left: 0;
right: 0;
height: 26px;
z-index: 2;
pointer-events: none;
opacity: 0;
transition: opacity 180ms ease;
}
.uj-nav-fade.is-on {
opacity: 1;
}
.uj-nav-fade.is-top {
top: 56px;
background: linear-gradient(180deg, rgba(11, 20, 55, 0.96), rgba(11, 20, 55, 0));
}
.uj-nav-fade.is-bottom {
bottom: 46px;
background: linear-gradient(0deg, rgba(10, 18, 48, 0.96), rgba(10, 18, 48, 0));
}
/* 区段标 / 分区线 */
.uj-zone-label {
height: 28px;
display: flex;
align-items: center;
padding: 0 14px;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.5px;
color: rgba(255, 255, 255, 0.42);
white-space: nowrap;
}
.uj-zone-sep {
height: 1px;
margin: 10px 14px 12px;
background: rgba(198, 220, 255, 0.09);
}
/* 工作台单入口(hideTitle 组,平铺到顶层) */
.uj-solo {
position: relative;
height: 38px;
width: calc(100% - 16px);
margin: 0 8px 4px;
padding: 0 10px;
border: 0;
border-radius: 6px;
background: transparent;
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
align-items: center;
gap: 10px;
color: rgba(255, 255, 255, 0.66);
text-align: left;
cursor: pointer;
}
/* hover = 选中态的低强度预览:同一条品牌蓝光楔、同样的四个停靠点,每档约 4 成强度。
不加短刻度与亮环 —— 那两个只属于「当前页」,hover 只预告可点,不伪造位置。
:not(.is-active) 显式排除当前项,避免依赖规则先后顺序。 */
.uj-solo:not(.is-active):hover {
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.12) 0%,
rgba(43, 92, 230, 0.04) 30%,
rgba(43, 92, 230, 0.01) 62%,
rgba(43, 92, 230, 0) 82%
);
color: #fff;
}
.uj-solo-ico {
width: 20px;
height: 20px;
display: grid;
place-items: center;
font-size: 17px;
}
.uj-solo-txt {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
}
/* 选中页:从左端短刻度向右淡出的「光楔」,取代贯穿整行的等宽蓝色长条。
左端 3px×16px 短刻度 + 节点亮环 + 文字提亮,三重信号都不占满整行。 */
.uj-solo.is-active {
color: #fff;
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.28) 0%,
rgba(43, 92, 230, 0.1) 30%,
rgba(43, 92, 230, 0.02) 62%,
rgba(43, 92, 230, 0) 82%
);
}
.uj-solo.is-active::after {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 16px;
border-radius: 0 2px 2px 0;
background: var(--uj-brand-light, #5b8def);
box-shadow: 0 0 10px -2px rgba(91, 141, 239, 0.7);
}
.uj-solo.is-active .uj-solo-ico {
color: var(--uj-brand-light, #5b8def);
}
/* 业务域章节头 */
/* 组内紧密、组间分明:间距预算主要花在章节之间,
而不是给 12 个二级项逐个加 gap(那样长菜单会失控)。 */
.uj-chapter {
position: relative;
margin-bottom: 10px;
}
.uj-chapter + .uj-chapter {
margin-top: 6px;
}
.uj-chap-head {
position: relative;
height: 36px;
width: calc(100% - 16px);
margin: 0 8px;
padding: 0 10px 0 6px;
border: 0;
border-radius: 6px;
background: transparent;
display: grid;
grid-template-columns: 20px minmax(0, 1fr) auto 12px;
align-items: center;
gap: 8px;
color: rgba(255, 255, 255, 0.72);
text-align: left;
cursor: pointer;
}
.uj-chap-head:hover {
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.12) 0%,
rgba(43, 92, 230, 0.04) 30%,
rgba(43, 92, 230, 0.01) 62%,
rgba(43, 92, 230, 0) 82%
);
color: #fff;
}
/* 左缘章节刻度:把纯色侧栏读成一册带书脊刻度的目录。
未激活章只留 2×10px 极淡刻痕,激活章才拉长成整段蓝刻度。 */
.uj-chap-head::before {
content: '';
position: absolute;
left: -8px;
top: 50%;
transform: translateY(-50%);
width: 2px;
height: 10px;
border-radius: 0 2px 2px 0;
background: rgba(198, 220, 255, 0.1);
transition: background 180ms ease;
}
/* hover 的刻痕转品牌蓝但仍是 10px 短刻:与激活章的拉长蓝刻度同族、不同长度 */
.uj-chap-head:hover::before {
background: rgba(91, 141, 239, 0.5);
}
.uj-chap-ico {
width: 20px;
height: 20px;
display: grid;
place-items: center;
font-size: 17px;
color: rgba(255, 255, 255, 0.5);
}
.uj-chap-head:hover .uj-chap-ico {
color: rgba(255, 255, 255, 0.82);
}
/* 固定标题槽:起点与宽度由四列网格保证,字数差被槽内留白吸收 */
.uj-chap-label {
font-size: 13px;
/* font-weight: 600; */
letter-spacing: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 右端真实子项数(等宽数字),同时预告该域展开后的长度 */
/* 域计数退到背景层:位置与等宽仍是锚点,但不再用亮色抢标题 */
.uj-chap-count {
font-size: 11px;
font-weight: 400;
font-variant-numeric: tabular-nums;
color: rgba(198, 220, 255, 0.12);
min-width: 16px;
text-align: right;
transition: color 160ms ease;
}
/* 只在交互时短暂提亮,静态视图里计数始终退在标题之后 */
.uj-chap-head:hover .uj-chap-count {
color: rgba(198, 220, 255, 0.58);
}
.uj-chap-chev {
width: 12px;
height: 12px;
display: grid;
place-items: center;
font-size: 11px;
color: rgba(255, 255, 255, 0.34);
transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.uj-chapter.is-open .uj-chap-chev {
transform: rotate(90deg);
}
.uj-chapter.is-current .uj-chap-head {
color: #fff;
}
.uj-chapter.is-current .uj-chap-ico {
color: var(--uj-brand-light, #5b8def);
}
.uj-chapter.is-current .uj-chap-count {
color: rgba(198, 220, 255, 0.62);
}
/* 激活域:把通用短刻痕拉长成整段蓝刻度(全侧栏唯一的重音) */
.uj-chapter.is-current .uj-chap-head::before {
top: 6px;
bottom: 6px;
height: auto;
transform: none;
background: var(--uj-brand-light, #5b8def);
}
/* 章节体 + 竖向导轨:把「这一章里的这些页」串成一组 */
.uj-chap-body {
position: relative;
padding: 6px 0 8px;
}
/* 激活域一层极淡的染色:域 > 页 两级光,不再靠整行实底铺满 */
.uj-chapter.is-current .uj-chap-body {
background: linear-gradient(90deg, rgba(43, 92, 230, 0.06), rgba(43, 92, 230, 0) 64%);
}
/* 导轨与短横压到 0.09:12 条短横连成一排时 0.16 会形成发亮的虚线带 */
.uj-chap-body::before {
content: '';
position: absolute;
left: 23px;
top: -4px;
bottom: 16px;
width: 1px;
background: rgba(198, 220, 255, 0.04);
}
.uj-chapter.is-current .uj-chap-body::before {
background: rgba(91, 141, 239, 0.08);
}
/* 二级项:不渲染语义图标,统一用导轨上的节点。
12 个各不相同的线性图标在 34px 行里会形成锯齿边,且 iconMap 白名单
会让后端新增页面漏登记时静默回落。选中信号也由该节点承担。 */
.uj-leaf {
position: relative;
height: 36px;
width: calc(100% - 16px);
margin: 0 8px;
padding: 0 10px 0 26px;
border: 0;
border-radius: 6px;
background: transparent;
display: grid;
grid-template-columns: 12px minmax(0, 1fr);
align-items: center;
gap: 8px;
color: rgba(255, 255, 255, 0.58);
text-align: left;
cursor: pointer;
}
/* 从导轨接到节点的短横,让层级是真连起来的而不是两条平行线 */
.uj-leaf::before {
content: '';
position: absolute;
left: 15px;
top: 50%;
width: 12px;
height: 1px;
background: rgba(198, 220, 255, 0.04);
}
.uj-chapter.is-current .uj-leaf::before {
background: rgba(91, 141, 239, 0.08);
}
/* hover 与选中共用一条光楔,只是强度约 4 成;当前项不参与 hover 反馈 */
.uj-leaf:not(.is-active):hover {
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.12) 0%,
rgba(43, 92, 230, 0.04) 30%,
rgba(43, 92, 230, 0.01) 62%,
rgba(43, 92, 230, 0) 82%
);
color: rgba(255, 255, 255, 0.92);
}
/* 只点亮 hover 这一根的短横,不会让 12 根连成亮带 */
.uj-leaf:not(.is-active):hover::before {
background: rgba(91, 141, 239, 0.24);
}
.uj-leaf-node {
width: 12px;
height: 12px;
display: grid;
place-items: center;
}
.uj-leaf-node::after {
content: '';
width: 5px;
height: 5px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.28);
transition:
background 160ms ease,
box-shadow 160ms ease;
}
/* 节点圆点也走品牌蓝递进:hover 淡蓝 → 选中亮蓝 + 亮环 */
.uj-leaf:not(.is-active):hover .uj-leaf-node::after {
background: rgba(91, 141, 239, 0.62);
}
.uj-leaf-txt {
font-size: 13px;
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 选中页:从左端短刻度向右淡出的「光楔」,取代贯穿整行的等宽蓝色长条。
左端 3px×16px 短刻度 + 节点亮环 + 文字提亮,三重信号都不占满整行。 */
.uj-leaf.is-active {
color: #fff;
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.28) 0%,
rgba(43, 92, 230, 0.1) 30%,
rgba(43, 92, 230, 0.02) 62%,
rgba(43, 92, 230, 0) 82%
);
}
.uj-leaf.is-active::after {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 16px;
border-radius: 0 2px 2px 0;
background: var(--uj-brand-light, #5b8def);
box-shadow: 0 0 10px -2px rgba(91, 141, 239, 0.7);
}
.uj-leaf.is-active .uj-leaf-txt {
font-weight: 500;
}
/* 选中项那根短横仍是章内最亮的,但压一档避免刺眼 */
.uj-leaf.is-active::before {
background: rgba(91, 141, 239, 0.78);
}
.uj-leaf.is-active .uj-leaf-node::after {
background: var(--uj-brand-light, #5b8def);
box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.22);
}
/* 底部系统区:折叠控制收回导航容器内,信息条只显示真实登录角色 */
.uj-sider-foot {
flex: none;
height: 46px;
border-top: 1px solid rgba(198, 220, 255, 0.09);
display: flex;
align-items: center;
gap: 8px;
padding: 0 12px;
}
.uj-fold-btn {
width: 28px;
height: 28px;
flex: none;
border: 0;
border-radius: 5px;
background: transparent;
color: rgba(255, 255, 255, 0.5);
display: grid;
place-items: center;
/* 尺寸由内联 SVG 的 15px 决定,不再靠 font-size 撑 antd 图标 */
cursor: pointer;
}
.uj-fold-btn:hover {
background: rgba(255, 255, 255, 0.07);
color: #fff;
}
.uj-foot-meta {
display: flex;
flex-direction: column;
line-height: 1.3;
min-width: 0;
overflow: hidden;
}
.uj-foot-meta .n {
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.uj-foot-meta .e {
font-size: 10px;
color: rgba(255, 255, 255, 0.28);
white-space: nowrap;
}
/* 键盘焦点:所有导航按钮共用一条可见焦点环 */
.uj-sider button:focus-visible,
.uj-nav-popover button:focus-visible {
outline: 2px solid var(--uj-brand-light, #5b8def);
outline-offset: 2px;
}
/* 折叠态(68px 图标栏):只留图标,两条区段标收成一条线 */
.uj-sider.is-collapsed .uj-nav-fade,
.uj-sider.is-collapsed .uj-zone-label,
.uj-sider.is-collapsed .uj-chap-label,
.uj-sider.is-collapsed .uj-chap-count,
.uj-sider.is-collapsed .uj-chap-chev,
.uj-sider.is-collapsed .uj-solo-txt,
.uj-sider.is-collapsed .uj-foot-meta {
display: none;
}
.uj-sider.is-collapsed .uj-zone-sep {
margin: 10px 18px 12px;
}
.uj-sider.is-collapsed .uj-chap-head,
.uj-sider.is-collapsed .uj-solo {
grid-template-columns: 20px;
justify-content: center;
padding: 0;
gap: 0;
}
.uj-sider.is-collapsed .uj-sider-foot {
justify-content: center;
padding: 0;
}
/* 折叠态唯一的位置信号,加粗一档才看得见 */
.uj-sider.is-collapsed .uj-chapter.is-current .uj-chap-head::before {
width: 3px;
}
/* 折叠态子项浮层:portal 到 body,避开 .ant-layout-sider 的 overflow: hidden */
.uj-nav-popover {
position: fixed;
left: 76px;
z-index: 1100;
min-width: 184px;
max-height: calc(100vh - 24px);
overflow-y: auto;
padding: 6px;
background: #101b42;
border: 1px solid rgba(198, 220, 255, 0.14);
border-radius: 8px;
box-shadow: 0 12px 32px -10px rgba(2, 6, 20, 0.7);
}
.uj-pop-title {
font-size: 11px;
color: rgba(255, 255, 255, 0.42);
padding: 6px 10px 8px;
letter-spacing: 0.5px;
}
.uj-pop-item {
position: relative;
display: block;
width: 100%;
height: 32px;
padding: 0 10px;
border: 0;
border-radius: 5px;
background: transparent;
color: rgba(255, 255, 255, 0.66);
font-size: 13px;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
/* 折叠态浮层与展开态共用同一套 hover / 选中语言,不能留一版旧的整行实底 */
.uj-pop-item:not(.is-active):hover {
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.12) 0%,
rgba(43, 92, 230, 0.04) 30%,
rgba(43, 92, 230, 0.01) 62%,
rgba(43, 92, 230, 0) 82%
);
color: #fff;
}
.uj-pop-item.is-active {
background: linear-gradient(
90deg,
rgba(43, 92, 230, 0.28) 0%,
rgba(43, 92, 230, 0.1) 30%,
rgba(43, 92, 230, 0.02) 62%,
rgba(43, 92, 230, 0) 82%
);
color: #fff;
}
.uj-pop-item.is-active::after {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 14px;
border-radius: 0 2px 2px 0;
background: var(--uj-brand-light, #5b8def);
box-shadow: 0 0 8px -2px rgba(91, 141, 239, 0.6);
}
@media (prefers-reduced-motion: reduce) {
.uj-chap-chev,
.uj-chap-head::before,
.uj-chap-count,
.uj-nav-fade,
.uj-leaf-node::after {
transition: none;
}
}
/* ============ 应用骨架:Header ============ */
/* 实底白 + 1px 实线:去掉毛玻璃(半透明 + blur 是「柔」的主要来源之一),
企业后台的头部要「压得住」页面,而不是飘在内容上。 */
.uj-header {
height: 56px;
display: flex;
align-items: center;
gap: 12px;
padding-inline: 20px !important;
background: #fff !important;
border-bottom: 1px solid var(--uj-border, #e6ebf2);
}
.uj-header-left {
display: flex;
align-items: center;
gap: 0; /* 间距由返回槽自己带,收起时才是真的 0 */
white-space: nowrap;
}
/* 折叠按钮已移入侧栏底部(.uj-fold-btn),Header 里不再有 .uj-header-fold。 */
/* 返回:贴在面包屑左侧 = 导航的位置;判据只有地址层级一条(见 BasicLayout 的 backTo)。
不常驻占位:没有去处时槽位宽 0,有去处时展开到 36(28 键 + 8 呼吸)。
位移交给宽度过渡 —— 面包屑是被「推」出去的,不是啪一下跳走的;
一级页也不会留下一块空洞。 */
.uj-header-back-slot {
display: flex;
flex: 0 0 auto;
width: 0;
overflow: hidden;
visibility: hidden;
/* 收起:宽度走完再隐藏,别让按钮在半宽处凭空消失 */
transition:
width 0.18s ease-out,
visibility 0s linear 0.18s;
}
.uj-header-left.has-back .uj-header-back-slot {
/* 64 键面 + 8 呼吸 = 72。键面宽是算出来的,不是量的:
左右内边距 8+8 + 图标 18 + 图标与文字之间 4 + 「返回」两个全角字 13×2 = 64。 */
width: 72px;
visibility: visible;
/* 展开:立刻可见,否则动画前半段是空的 */
transition:
width 0.18s ease-out,
visibility 0s;
}
.uj-header-back {
flex: none;
height: 28px;
margin-right: 8px;
padding: 0 8px;
display: flex;
align-items: center;
gap: 4px;
border: none;
border-radius: var(--uj-radius-md, 6px);
background: transparent;
color: var(--uj-text-2, #4a5568);
font-size: var(--uj-font-sm, 13px);
white-space: nowrap;
cursor: pointer;
opacity: 0;
transform: translateX(6px);
transition:
opacity 0.14s ease-out,
transform 0.18s ease-out,
background-color 0.16s ease-out,
color 0.16s ease-out;
}
.uj-header-left.has-back .uj-header-back {
opacity: 1;
transform: none;
}
.uj-header-back:hover {
background: var(--uj-surface-3, #f2f5fa);
color: var(--uj-primary, #2b5ce6);
}
.uj-header-back:active {
background: var(--uj-primary-soft, #eef3ff);
color: var(--uj-primary-active, #1f49c4);
}
.uj-header-back:focus-visible {
outline: 2px solid var(--uj-primary, #2b5ce6);
outline-offset: -1px;
}
/* 字形(自绘一大一小双折线,路径几何见 BasicLayout 的 BackGlyph):
大且实 = 要回去的上一层,小且浅 = 正要离开的当前页 —— 深浅之外再拉开大小,
18px 下才不会糊成一根线。hover 时整对左移一档、浅的那条转实,
「让位给上一层」这个动作就是控件的含义。 */
.uj-back-glyph .uj-back-head,
.uj-back-glyph .uj-back-trail {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
transition:
transform 0.18s ease-out,
opacity 0.18s ease-out;
}
.uj-back-glyph .uj-back-head {
stroke-width: 1.9;
}
.uj-back-glyph .uj-back-trail {
stroke-width: 1.6;
opacity: 0.45;
}
.uj-header-back:hover .uj-back-head,
.uj-header-back:hover .uj-back-trail {
transform: translateX(-2px);
}
.uj-header-back:hover .uj-back-trail {
opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
.uj-back-glyph .uj-back-head,
.uj-back-glyph .uj-back-trail,
.uj-header-back-slot,
.uj-header-left.has-back .uj-header-back-slot,
.uj-header-back {
transition: none;
}
.uj-header-back {
opacity: 1;
transform: none;
}
.uj-header-back:hover .uj-back-head,
.uj-header-back:hover .uj-back-trail {
transform: none;
}
}
/* 面包屑:antd Breadcrumb 承载结构,这里只定字号(末级=页题,其余=分组) */
.uj-header-crumb {
white-space: nowrap;
}
.uj-crumb-parent {
font-size: 13px;
color: #8a94a6;
}
.uj-crumb-current {
font-size: 16px;
font-weight: 600;
color: #1d2533;
}
/* 全局搜索:矩形输入框 + 实描边,与控件体系同一套圆角(不再用 999px 胶囊) */
.uj-header-search {
position: relative;
flex: 1;
max-width: 420px;
margin-inline: auto;
}
.uj-header-search .ant-input-affix-wrapper {
height: 34px;
background: #fff;
border-radius: var(--uj-radius-md, 6px);
padding: 0 12px;
display: flex;
align-items: center;
transition: all 0.2s ease;
}
.uj-header-search .ant-input-affix-wrapper .ant-input {
height: auto;
}
.uj-header-search .ant-input-affix-wrapper:hover,
.uj-header-search .ant-input-affix-wrapper-focused {
background: #fff;
box-shadow: 0 0 0 2px rgba(43, 92, 230, 0.14);
}
.uj-header-search-kbd {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
line-height: 1;
font-size: 11px;
color: #8a94a6;
background: #fff;
border: 1px solid #e2e7ef;
border-radius: var(--uj-radius-sm, 4px);
padding: 3px 7px;
pointer-events: none;
}
/* 右侧操作区 */
.uj-header-right {
display: flex;
align-items: center;
gap: 10px;
white-space: nowrap;
}
/* 图标按钮:antd Button type="text" 承载交互,这里只压掉默认内边距并定品牌悬浮色 */
.uj-header-icon-btn {
width: 34px;
height: 34px;
padding: 0;
border: none;
border-radius: var(--uj-radius-md, 6px);
background: transparent !important;
color: #4a5568;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.uj-header-icon-btn:hover {
background: #f2f4f9 !important;
color: #2b5ce6 !important;
}
/* 进行中:图标本身静止,外圈一道细弧匀速旋转(标准「进行中」语义)。
只保留这一处转圈反馈,不再让图标本体做 360° 旋转。 */
.uj-header-icon-btn.uj-download-active {
position: relative;
}
.uj-header-icon-btn.uj-download-active .anticon-download {
color: #2b5ce6;
}
.uj-header-icon-btn.uj-download-active::before {
content: '';
position: absolute;
inset: 3px;
border: 2px solid transparent;
border-top-color: #2b5ce6;
border-radius: 50%;
animation: uj-download-spin 0.9s linear infinite;
pointer-events: none;
}
@keyframes uj-download-spin {
to { transform: rotate(360deg); }
}
/* 尊重系统「减少动态效果」偏好:外圈不旋转,但保留蓝色状态色与静态弧 */
@media (prefers-reduced-motion: reduce) {
.uj-header-icon-btn.uj-download-active::before {
animation: none;
}
}
/* 下载中心图标旁的浮窗提示:就地出现在入口附近,取代原来的全站顶部 notification */
.uj-dc-anchor {
position: relative;
display: inline-flex;
}
.uj-dc-toast {
position: absolute;
top: calc(100% + 10px);
right: 0;
z-index: 1050;
width: 300px;
display: flex;
gap: 8px;
padding: 10px 12px;
background: #fff;
border: 1px solid #e8ecf3;
border-left: 3px solid #1677ff;
border-radius: 6px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
cursor: pointer;
animation: uj-dc-toast-in 0.18s ease-out;
}
/* 指向图标的小箭头 */
.uj-dc-toast::before {
content: '';
position: absolute;
top: -6px;
right: 14px;
width: 10px;
height: 10px;
background: #fff;
border-top: 1px solid #e8ecf3;
border-left: 1px solid #e8ecf3;
transform: rotate(45deg);
}
.uj-dc-toast-success { border-left-color: #52c41a; }
.uj-dc-toast-error { border-left-color: #ff4d4f; }
.uj-dc-toast-icon { font-size: 16px; line-height: 1.4; color: #1677ff; flex: none; }
.uj-dc-toast-success .uj-dc-toast-icon { color: #52c41a; }
.uj-dc-toast-error .uj-dc-toast-icon { color: #ff4d4f; }
/* 显式占满图标外的剩余宽度并允许收缩,长 label / 长英文串才不会把 300px 浮窗撑破 */
.uj-dc-toast-body { flex: 1; min-width: 0; max-width: 100%; }
/* 浮窗挂在 header 内,祖先链可能有 white-space:nowrap(导航栏常见)。nowrap 会被继承,
一旦继承,overflow-wrap:anywhere 完全失效——长 UUID 提示会一行溢出浮窗(实测 scrollWidth 583 > 容器 254)。
这里显式切断继承,换行规则才真正生效。 */
.uj-dc-toast-title { font-size: 13px; font-weight: 600; color: rgba(0, 0, 0, 0.88); line-height: 1.4; white-space: normal; word-break: break-word; }
.uj-dc-toast-desc { font-size: 12px; color: rgba(0, 0, 0, 0.55); line-height: 1.5; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@keyframes uj-dc-toast-in {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.uj-dc-toast { animation: none; }
}
.uj-header-divider {
width: 1px;
height: 22px;
background: #e8ecf3;
margin-inline: 2px;
}
.uj-header-user {
display: flex;
align-items: center;
gap: 10px;
border: none;
background: transparent;
cursor: pointer;
padding: 4px 8px 4px 4px;
border-radius: var(--uj-radius-md, 6px);
transition: background 0.2s ease;
}
.uj-header-user:hover {
background: #f2f4f9;
}
.uj-header-user-text {
display: flex;
flex-direction: column;
align-items: flex-start;
line-height: 1.25;
}
.uj-header-user-text .n {
font-size: 13px;
font-weight: 600;
color: #1d2533;
}
.uj-header-user-text .r {
font-size: 11px;
color: #8a94a6;
}
/* ============ 工作台首页(2026-11-16 三次重设计 · 用户视角) ============
面向使用者回答两个问题:今天几号 / 我是谁(含查看资料、修改密码两条真实入口)。
不出现主壳、会话、扩展、开发环境、令牌等工程词——用户既不懂也不关心。
视觉丰富度靠真实信息 + 分区栅格 + 内联 SVG,不靠塞元素;
外观一律取 @uj/design-tokens 的 --uj-* 语义令牌。 */
.uj-wb {
display: flex;
flex-direction: column;
gap: var(--uj-space-module, 10px);
max-width: 1120px;
}
/* 顶部:日期 + 标题 + 一句说明,全部是用户语言 */
.uj-wb-head {
padding: var(--uj-space-5) var(--uj-space-6);
border: 1px solid var(--uj-border, #e6ebf2);
border-radius: var(--uj-radius-card, 10px);
background: var(--uj-surface, #fff);
box-shadow: var(--uj-shadow-card);
}
.uj-wb-date {
display: inline-flex;
align-items: center;
gap: var(--uj-space-2);
color: var(--uj-text-3, #8a94a6);
font-size: var(--uj-font-xs, 12px);
}
.uj-wb-title {
margin: var(--uj-space-3) 0 0;
color: var(--uj-text-1, #1d2533);
font-size: var(--uj-font-3xl, 24px);
font-weight: 600;
line-height: 1.25;
}
.uj-wb-subtitle {
margin: var(--uj-space-2) 0 0;
color: var(--uj-text-3, #8a94a6);
font-size: var(--uj-font-sm, 13px);
line-height: 1.6;
}
/* 身份名片:左信息 + 右图形,图形表达「这是你的账号」 */
.uj-wb-hero {
display: grid;
grid-template-columns: minmax(0, 1fr) 240px;
align-items: center;
gap: var(--uj-space-6);
padding: var(--uj-space-6);
border: 1px solid var(--uj-border, #e6ebf2);
border-radius: var(--uj-radius-card, 10px);
background: var(--uj-surface, #fff);
box-shadow: var(--uj-shadow-card);
}
.uj-wb-hero__main {
display: flex;
align-items: center;
gap: var(--uj-space-5);
min-width: 0;
}
.uj-wb-avatar {
display: flex;
flex: none;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
border: 1px solid var(--uj-info-border, #d6e2fb);
border-radius: var(--uj-radius-card, 10px);
background: var(--uj-primary-soft, #eef3ff);
color: var(--uj-primary, #2b5ce6);
font-size: var(--uj-font-3xl, 24px);
font-weight: 600;
}
.uj-wb-hero__copy { min-width: 0; }
.uj-wb-label {
color: var(--uj-text-3, #8a94a6);
font-size: var(--uj-font-xs, 12px);
}
.uj-wb-hero__name {
margin-top: var(--uj-space-1);
color: var(--uj-text-1, #1d2533);
font-size: var(--uj-font-3xl, 24px);
font-weight: 600;
line-height: 1.3;
overflow-wrap: anywhere;
}
.uj-wb-hero__account {
display: flex;
align-items: center;
gap: var(--uj-space-2);
margin-top: var(--uj-space-1);
color: var(--uj-text-2, #4a5568);
font-size: var(--uj-font-md, 14px);
}
.uj-wb-tags {
display: flex;
flex-wrap: wrap;
gap: var(--uj-space-2);
margin-top: var(--uj-space-3);
}
.uj-wb-tag {
padding: 3px 10px;
border-radius: var(--uj-radius-pill, 6px);
background: var(--uj-primary-soft, #eef3ff);
color: var(--uj-primary, #2b5ce6);
font-size: var(--uj-font-xs, 12px);
}
.uj-wb-art {
display: block;
width: 100%;
max-width: 240px;
height: auto;
border-radius: var(--uj-radius-card, 10px);
}
/* 两张用户真能用的卡:查看资料 / 修改密码,都指向真实的 /profile */
.uj-wb-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--uj-space-module, 10px);
}
.uj-wb-action {
display: flex;
flex-direction: column;
min-height: 176px;
padding: var(--uj-space-5) var(--uj-space-6);
border: 1px solid var(--uj-border, #e6ebf2);
border-radius: var(--uj-radius-card, 10px);
background: var(--uj-surface, #fff);
box-shadow: var(--uj-shadow-card);
}
.uj-wb-action__icon {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--uj-radius-md, 6px);
background: var(--uj-primary-soft, #eef3ff);
color: var(--uj-primary, #2b5ce6);
font-size: var(--uj-font-xl, 16px);
}
.uj-wb-action__title {
margin: var(--uj-space-4) 0 0;
color: var(--uj-text-1, #1d2533);
font-size: var(--uj-font-lg, 15px);
font-weight: 600;
line-height: 1.4;
}
.uj-wb-action__desc {
margin: var(--uj-space-2) 0 0;
color: var(--uj-text-3, #8a94a6);
font-size: var(--uj-font-sm, 13px);
line-height: 1.65;
}
.uj-wb-action__foot {
margin-top: auto;
padding-top: var(--uj-space-4);
}
@media (max-width: 1024px) {
.uj-wb-hero { grid-template-columns: 1fr; }
.uj-wb-art { max-width: 220px; }
}
@media (max-width: 720px) {
.uj-wb-head,
.uj-wb-hero,
.uj-wb-action { padding: var(--uj-space-4); }
.uj-wb-avatar {
width: 56px;
height: 56px;
font-size: var(--uj-font-2xl, 20px);
}
.uj-wb-hero__name { font-size: var(--uj-font-2xl, 20px); }
.uj-wb-actions { grid-template-columns: 1fr; }
}
/* 右下角底图:与登录页 uj-login-coverage 同源的「覆盖网络」视觉语言,
反转为浅底上的品牌蓝低透明度水印,只在工作台右侧与下部的空白处透出来。
fixed 贴视口右下;顶部 mask 渐隐让装饰自然融入页面。 */
.uj-wb-backdrop {
position: fixed;
right: 0;
bottom: 0;
z-index: 0;
width: min(46vw, 640px);
pointer-events: none;
-webkit-mask-image: linear-gradient(to top, #000 88%, transparent 100%);
mask-image: linear-gradient(to top, #000 88%, transparent 100%);
}
.uj-wb-backdrop svg {
display: block;
width: 100%;
height: auto;
shape-rendering: geometricPrecision;
}
/* 内容三块抬到水印之上(fixed 装饰在层叠序中会盖过 static 内容,需显式抬升) */
.uj-wb-head,
.uj-wb-hero,
.uj-wb-actions {
position: relative;
z-index: 1;
}
/* 基站青绿脉冲:复用登录页 cov-ping 关键帧(扩散至内环半径一半即收),
尊重 prefers-reduced-motion */
.uj-wb-pulse {
transform-box: fill-box;
transform-origin: center;
animation: cov-ping 3.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.uj-wb-pulse {
animation: none;
opacity: 0;
}
}
/* ============ 个人资料页 ============ */
.uj-profile {
display: flex;
flex-direction: column;
gap: var(--uj-space-module, 10px);
}
/* 顶部身份横幅 */
.uj-profile-hero-inner {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px 16px;
padding: 12px 14px;
}
.uj-profile-hero-id {
display: flex;
align-items: center;
gap: 12px;
}
.uj-profile-avatar {
background: linear-gradient(135deg, #2b5ce6, #5b8def);
box-shadow: 0 3px 10px rgba(43, 92, 230, 0.28);
flex: none;
}
.uj-profile-name {
font-size: 18px;
font-weight: 600;
color: #1d2533;
line-height: 1.3;
}
.uj-profile-account {
font-size: 13px;
}
.uj-profile-hero-meta {
display: flex;
flex-wrap: wrap;
gap: 12px 20px;
}
.uj-profile-chip {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 120px;
}
.uj-profile-chip-label {
font-size: 12px;
color: #8a94a6;
}
.uj-profile-chip-value {
font-size: 13px;
font-weight: 500;
color: #1d2533;
}
/* 下方双栏(强制等高) */
.uj-profile-grid {
display: grid;
grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
gap: var(--uj-space-module, 10px);
align-items: stretch;
}
.uj-profile-info,
.uj-profile-security {
display: flex;
flex-direction: column;
}
.uj-profile-card-title {
font-weight: 600;
font-size: 15px;
color: #1d2533;
}
.uj-profile-rows {
flex: 1 1 auto;
margin-top: 4px;
}
.uj-profile-roles {
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
justify-content: flex-end;
}
.uj-profile-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
border-bottom: 1px dashed #f0f3f8;
font-size: 13px;
}
.uj-profile-row:last-child {
border-bottom: none;
}
.uj-profile-label {
color: #8a94a6;
flex: none;
}
.uj-profile-value {
color: #1d2533;
text-align: right;
word-break: break-all;
}
.uj-profile-note {
margin-top: 14px;
padding-top: 14px;
border-top: 1px dashed #eef1f6;
font-size: 12px;
line-height: 1.6;
color: #aab2c0;
}
@media (max-width: 1100px) {
.uj-profile-grid {
grid-template-columns: 1fr;
}
}