design.css 26.2 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
/* 令牌唯一真源:@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%);
}

/* Sider 菜单:胶囊态选中 + 隐藏默认右侧指示条 */
.uj-sider .ant-menu-inline .ant-menu-item {
  border-radius: 8px;
  margin-top: 4px;
}
.uj-sider .ant-menu-inline .ant-menu-item-selected::after {
  display: none;
}
.uj-sider .ant-menu-inline .ant-menu-item-selected {
  font-weight: 600;
}

/* ============ 登录页 ============ */
.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: 12px;
  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);
}
/* ---- 拟物表盘时钟(左栏内,与 slogan 左右排列、紧贴 hero 下方) ---- */
.uj-login-clock {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
/* 时钟脚下接触阴影(整片地面见 .uj-login-foot::before),保留「立在地上」的咬合感 */
.uj-login-clock::after {
  /* 接触阴影:物体压在地面上的实影,中心更实、边缘虚,强化「立在地上」 */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 160px;
  height: 21px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.64),
    rgba(0, 0, 0, 0.32) 46%,
    transparent 72%
  );
  filter: blur(5px);
  z-index: -1;
  pointer-events: none;
}
.uj-login-dial svg {
  display: block;
}
.uj-login-dial-hour,
.uj-login-dial-minute,
.uj-login-dial-second {
  /* view-box 让 transform-origin 落在 viewBox 中心 (100,100);SVG 默认原点在 0,0,不加会绕左上角甩出去 */
  transform-box: view-box;
  transform-origin: center;
}
.uj-login-dial-hour,
.uj-login-dial-minute {
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.uj-login-dial-second {
  /* 略带回弹的机械跳动 —— 拟物表的手感来源 */
  transition: transform 0.24s cubic-bezier(0.34, 1.55, 0.5, 1);
}
@media (prefers-reduced-motion: reduce) {
  .uj-login-dial-hour,
  .uj-login-dial-minute,
  .uj-login-dial-second {
    transition: none;
  }
}
.uj-login-clock-readout {
  display: inline-flex;
  align-items: baseline;
  margin-top: 14px;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.88);
  /* 等宽数字:秒位跳动时整块不会左右抖动 */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.uj-login-clock-readout .hm {
  display: inline-flex;
  align-items: baseline;
}
/* 秒为次窗:更小、更淡;用品牌色小圆点做柔和分隔,取代生硬的竖线。
   注意:.sec 不能用 inline-flex,否则其基线退化成盒子底边,秒会相对时分整体下沉;
   保持普通 inline(基线=数字基线),圆点用 inline-block + vertical-align 居中 */
.uj-login-clock-readout .sec {
  margin-left: 11px;
  font-size: 13px;
  letter-spacing: 1px;
  color: red;
}
.uj-login-clock-readout .sec::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5b8def;
  opacity: 0.85;
  vertical-align: middle;
}
/* 冒号呼吸闪烁:数字表的经典设计语言,弱化但保留「在走」的暗示 */
.uj-login-clock-readout .colon {
  font-style: normal;
  animation: uj-clock-blink 1.1s infinite;
}
@keyframes uj-clock-blink {
  0%,
  49.99% {
    opacity: 0.9;
  }
  50%,
  100% {
    opacity: 0.18;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uj-login-clock-readout .colon {
    animation: none;
    opacity: 0.7;
  }
}
/* ---- 底部主张区(主张标题) ---- */
/* margin-top:auto 把 brand+greet 顶到上方、hero+foot 整体下沉到底部,中部留白 */
.uj-login-hero {
  margin-top: auto;
}
/* 底部脚注区:slogan 左 + 时钟右 左右排列;hero 的 margin-top:auto 把整块沉到底部 */
.uj-login-foot {
  margin-top: 28px;
  /* 内下边距把时钟/slogan 整体抬离底部地面条,留出 18px 间隙;foot 盒底位置不变,地面条仍贴底可见 */
  padding-bottom: 18px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
/* 地面(墙根转角):紧贴 foot 盒底(=时钟底原位置,距屏幕底 20px 的 aside 内边距处)铺满整栏宽,
   顶边是"墙地交界线"——一条受光高光 + 其下墙根投影带(AO),再向下是向前(观者)渐沉的地面主调,
   时钟正下方一团反光光晕,整体读成「时钟立在一面墙前的地面上」。
   之所以用 top:100%(而非负 bottom),是因为 foot 用 padding-bottom 抬升内容后盒底不动,
   地面条始终贴 foot 盒底、绝不会被 aside 的 overflow:hidden 裁掉;
   left/right:-44px 抵消 aside 的 44px 内边距使地面横跨整栏;超出部分由 aside overflow:hidden 收口 */
.uj-login-foot::before {
  content: '';
  position: absolute;
  left: -44px;
  right: -44px;
  top: 100%;
  height: 20px;
  z-index: -1;
  pointer-events: none;
  background:
    /* 1. 转角高光:墙地交界的 2px 亮线 */
    linear-gradient(180deg, rgba(198, 220, 255, 0.5) 0 2px, transparent 2px),
    /* 2. 墙根投影(AO):2–13px 渐虚,模拟墙在地面落影 */
    linear-gradient(180deg, transparent 2px, rgba(2, 6, 18, 0.62) 7px, rgba(2, 6, 18, 0) 13px),
    /* 3. 地面主调:薄薄一层,向前(下)略沉,呼应"立在地面的钟" */
    linear-gradient(180deg, rgba(30, 48, 100, 0.92) 0%, rgba(8, 15, 40, 0.98) 100%),
    /* 4. 时钟正下方反光光晕 */
    radial-gradient(82% 240% at 70% 0%, rgba(120, 160, 255, 0.22), rgba(120, 160, 255, 0) 65%);
}
.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: 16px;
  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: 18px;
  padding: 48px 44px;
  box-shadow: var(--uj-shadow-pop);
  border: 1px solid #eef1f6;
}
/* 浏览器「记住密码」自动填充后,输入框出现默认淡色背景(淡蓝/淡黄),与白色卡片不搭。
   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;
  /* 垂直、低饱和、matte 深蓝:比原 160° 对角渐变更稳重、更有层次但不「动」。 */
  background: linear-gradient(180deg, #0e1736 0%, #111b3d 55%, #0e1631 100%);
  box-shadow: 4px 0 24px -12px rgba(6, 12, 38, 0.55);
  /* 侧边菜单不再有 CSS 旋钮:高度 / 左右留白 / 圆角 / 图标尺寸 / 折叠宽度
     全部写在 themeConfig.ts 的 components.Menu token 里,由组件自身参与计算。 */
}
/* 左侧菜单栏「地脚线 / 地面」:与登录页时钟底部同源一面墙、同一片地面的视觉延伸,
   让登录页与内部系统形成关联。2px 受光交界亮线 + 墙根投影带(AO) + 向前(下)渐沉的
   地面主调 + 地面反光光晕,与 .uj-login-foot::before 同一套语言;
   height:20px 与登录页地面等高,强化「同一片地面」的呼应。 */
.uj-sider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  z-index: 1;
  pointer-events: none;
  background:
    /* 1. 墙地交界受光亮线 */
    linear-gradient(180deg, rgba(198, 220, 255, 0.5) 0 2px, transparent 2px),
    /* 2. 墙根投影(AO):2–13px 渐虚,模拟墙在地面落影 */
    linear-gradient(180deg, transparent 2px, rgba(2, 6, 18, 0.62) 7px, rgba(2, 6, 18, 0) 13px),
    /* 3. 地面主调:近墙受光略亮、向前(下)渐沉 */
    linear-gradient(180deg, rgba(26, 40, 82, 0.94) 0%, rgba(6, 10, 28, 0.98) 100%),
    /* 4. 地面反光光晕(延续登录页氛围,居中受光) */
    radial-gradient(82% 240% at 50% 0%, rgba(120, 160, 255, 0.18), rgba(120, 160, 255, 0) 65%);
}
.uj-sider > .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 品牌区 */
.uj-sider-brand {
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  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;
  letter-spacing: 1px;
}
.uj-sider-brand-text .s {
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* 菜单滚动区:只负责接管滚动与隐藏滚动条。
   横向留白不再由这里承担 —— 由 Menu 的 itemMarginInline token 承担(见 themeConfig.ts)。
   加 scrollbar-gutter: stable both-edges:即使滚动条真的占了宽度,
   浏览器也会在**两侧同时**预留相同空间,左右不会因此失对称。 */
.uj-sider-menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* 底部预留地脚线(地面)高度,避免菜单最后一项被 .uj-sider::after 的地面带遮挡 */
  padding-block: 12px 24px;
  padding-inline: 0;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: none;
}
.uj-sider-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 菜单:本文件**只做主题着色**。
   所有几何量(高度、左右留白、内间距、圆角、图标尺寸、折叠宽度)都不在此覆盖,
   改由 ConfigProvider 的 Menu token 下发(见 src/theme/themeConfig.ts 的 components.Menu)——
   那是 antd 官方认可的定制入口,组件内部的宽度/居中计算会跟着 token 一起重算,不会互相打架。
   折叠态的图标居中尤其依赖这一点:antd 原生用 marginInline + paddingInline:calc(50% - 图标宽/2 - margin),
   任何对 width / padding-inline 的 CSS 覆盖都会把它算歪。 */
.uj-menu.ant-menu-dark {
  background: transparent;
}
/* 一级菜单(SubMenu)标题:沿用原先分组标题的字重/字距/大小写;
   字号与颜色仍由 themeConfig 的 token 下发。间距一律不写——antd 自身会让标题与菜单项对齐,
   手动设 padding 反而容易错位(折叠态图标居中尤其敏感)。 */
.uj-menu.ant-menu-dark .ant-menu-submenu-title {
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* 选中态左侧指示条:用 inset 阴影画,不占盒模型空间,
   因此不会改变组件的宽高,也不会干扰折叠态的居中计算。 */
.uj-menu.ant-menu-dark .ant-menu-item-selected {
  box-shadow: inset 3px 0 0 0 #5b8def;
}
/* 折叠态(Sider 收起成图标栏)不再隐藏标题:
   antd 自身会把 SubMenu 标题文字收起、只留图标,hover 弹出子菜单浮层。
   若照旧对标题容器 display:none,会把折叠态下唯一的图标入口一起干掉,菜单就点不动了。
   折叠态的展开/收起由 antd 浮层接管,openKeys 只作用于展开态。 */

/* ============ 应用骨架:Header ============ */
.uj-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 20px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef1f6;
}
.uj-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.uj-header-fold {
  font-size: 18px;
  color: #4a5568;
  margin-inline-end: 4px;
}
.uj-header-fold:hover {
  color: #2b5ce6 !important;
  background: #f2f4f9 !important;
}
/* 面包屑: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;
}

/* 全局搜索:胶囊态,聚焦浮现品牌色描边 */
.uj-header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
}
.uj-header-search .ant-input-affix-wrapper {
  height: 38px;
  background: #f2f4f9;
  border-radius: 999px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: all 0.25s 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: 6px;
  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: 10px;
  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;
}
.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: 999px;
  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;
}

/* ============ 工作台 Dashboard ============ */
.uj-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 品牌欢迎条:浅色卡片 + 品牌色点睛。
   旧版用 brandGradient(#0B1437→#16245A) 整条铺底,明度过低显得压抑;
   现改为高明度底色,品牌感交给「小面积渐变方块 + 右上角柔光」承载。 */
.uj-dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(120deg, #ffffff 0%, #f5f7ff 100%);
  border: 1px solid rgba(43, 92, 230, 0.1);
  box-shadow: 0 2px 10px rgba(16, 24, 64, 0.04);
}
/* 右上角品牌柔光:给浅底加层次,不占大面积 */
.uj-dash-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 92, 230, 0.1) 0%, rgba(43, 92, 230, 0) 70%);
  pointer-events: none;
}
.uj-dash-hero-id {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.uj-dash-hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 500;
  color: #2b5ce6;
}
.uj-dash-hero-mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex: none;
  background: linear-gradient(135deg, #2b5ce6, #5b8def);
  box-shadow: 0 4px 10px rgba(43, 92, 230, 0.3);
}
.uj-dash-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d2533;
  line-height: 1.25;
  margin: 12px 0 6px;
}
.uj-dash-hero-sub {
  font-size: 13px;
  color: #6b7688;
  margin: 0;
}
.uj-dash-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex: none;
}
.uj-dash-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(43, 92, 230, 0.05);
  border: 1px solid rgba(43, 92, 230, 0.08);
}
.uj-dash-meta-label {
  font-size: 11px;
  color: #8a94a6;
}
.uj-dash-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: #1d2533;
  word-break: break-all;
}

/* KPI 行 */
.uj-dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uj-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.uj-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(16, 24, 40, 0.28);
}
.uj-kpi-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.uj-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uj-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.uj-kpi-label {
  margin-top: 14px;
  font-size: 13px;
  color: #8a94a6;
}
.uj-kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: #1d2533;
  line-height: 1.2;
  margin-top: 2px;
}
.uj-kpi-delta {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* 主区:趋势 + 侧栏 */
.uj-dash-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.uj-dash-trend {
  border-radius: 14px;
}
.uj-dash-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.uj-dash-side .ant-card {
  border-radius: 14px;
}

/* 底部快捷 */
.uj-dash-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uj-dash-foot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #1d2533;
  cursor: pointer;
  transition: all 0.2s ease;
}
.uj-dash-foot-item:hover {
  border-color: rgba(43, 92, 230, 0.4);
  box-shadow: 0 10px 22px -16px rgba(43, 92, 230, 0.6);
}

/* ============ 工作台 · 欢迎页 ============ */
.uj-welcome-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2533;
  margin-bottom: 12px;
}
.uj-welcome-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.uj-quick-card {
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.uj-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(16, 24, 40, 0.28);
}
.uj-quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #eef3ff;
  color: #2b5ce6;
  margin-bottom: 12px;
}
.uj-quick-label {
  font-size: 14px;
  font-weight: 600;
  color: #1d2533;
}
.uj-quick-desc {
  font-size: 12px;
  color: #8a94a6;
  line-height: 1.5;
  margin-top: 4px;
  min-height: 36px;
}
.uj-quick-go {
  font-size: 12px;
  color: #2b5ce6;
  margin-top: 6px;
}
.uj-welcome-sec {
  display: flex;
  align-items: center;
  gap: 14px;
}
.uj-welcome-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: #fff7e6;
  color: #ba7517;
}

/* ============ 个人资料页 ============ */
.uj-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 顶部身份横幅 */
.uj-profile-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  padding: 22px 24px;
}
.uj-profile-hero-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.uj-profile-avatar {
  background: linear-gradient(135deg, #2b5ce6, #5b8def);
  box-shadow: 0 6px 16px 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: 14px 36px;
}
.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: 16px;
  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: 16px;
  padding: 12px 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-dash-kpis,
  .uj-dash-foot {
    grid-template-columns: repeat(2, 1fr);
  }
  .uj-dash-main {
    grid-template-columns: 1fr;
  }
  .uj-dash-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .uj-dash-hero-meta {
    width: 100%;
  }
  .uj-profile-grid {
    grid-template-columns: 1fr;
  }
}