yc-agent-ui 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/es/components/dialog/index.d.ts +6 -6
  2. package/es/components/dialog/src/index.vue.d.ts +2 -2
  3. package/es/components/dialog-form/index.d.ts +6 -6
  4. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  5. package/es/components/display-item/index.d.ts +21 -21
  6. package/es/components/display-item/src/index.vue.d.ts +19 -19
  7. package/es/components/drawer-form/index.d.ts +18 -18
  8. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  9. package/es/components/form/index.d.ts +12 -12
  10. package/es/components/form/src/form-content.vue.d.ts +12 -12
  11. package/es/components/form/src/index.vue.d.ts +12 -12
  12. package/es/components/form-item/index.d.ts +12 -12
  13. package/es/components/form-item/src/index.vue.d.ts +10 -10
  14. package/es/components/page/index.d.ts +258 -258
  15. package/es/components/page/src/index.vue.d.ts +90 -90
  16. package/es/components/render/index.d.ts +1 -1
  17. package/es/components/render/src/index.vue.d.ts +1 -1
  18. package/es/components/search/index.d.ts +78 -78
  19. package/es/components/search/src/index.vue.d.ts +30 -30
  20. package/es/components/table/src/table-column.vue.d.ts +46 -46
  21. package/es/components/yc-ai-chat/index.d.ts +2 -1
  22. package/es/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
  23. package/es/components/yc-ai-chat/src/question-validation.d.ts +5 -0
  24. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +19 -1
  25. package/es/components/yc-ai-chat/src/studio.vue.d.ts +6 -0
  26. package/es/components/yc-ai-chat/src/type.d.ts +53 -0
  27. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  28. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  29. package/es/hooks/usePlusFormReset.d.ts +144 -144
  30. package/es/index.css +10 -10
  31. package/es/index.mjs +1 -0
  32. package/es/packages/components/index.mjs +1 -0
  33. package/es/packages/components/yc-ai-chat/index.mjs +1 -0
  34. package/es/packages/components/yc-ai-chat/src/question-card.vue.mjs +5 -0
  35. package/es/packages/components/yc-ai-chat/src/question-card2.vue.mjs +459 -0
  36. package/es/packages/components/yc-ai-chat/src/question-validation.mjs +77 -0
  37. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +709 -129
  38. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +194 -42
  39. package/es/version.d.ts +1 -1
  40. package/es/version.mjs +1 -1
  41. package/index.css +1 -1
  42. package/index.js +2932 -1667
  43. package/index.min.js +26 -26
  44. package/index.min.mjs +25 -25
  45. package/index.mjs +2915 -1651
  46. package/lib/components/dialog/index.d.ts +6 -6
  47. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  48. package/lib/components/dialog-form/index.d.ts +6 -6
  49. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  50. package/lib/components/display-item/index.d.ts +21 -21
  51. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  52. package/lib/components/drawer-form/index.d.ts +18 -18
  53. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  54. package/lib/components/form/index.d.ts +12 -12
  55. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  56. package/lib/components/form/src/index.vue.d.ts +12 -12
  57. package/lib/components/form-item/index.d.ts +12 -12
  58. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  59. package/lib/components/page/index.d.ts +258 -258
  60. package/lib/components/page/src/index.vue.d.ts +90 -90
  61. package/lib/components/render/index.d.ts +1 -1
  62. package/lib/components/render/src/index.vue.d.ts +1 -1
  63. package/lib/components/search/index.d.ts +78 -78
  64. package/lib/components/search/src/index.vue.d.ts +30 -30
  65. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  66. package/lib/components/yc-ai-chat/index.d.ts +2 -1
  67. package/lib/components/yc-ai-chat/src/question-card.vue.d.ts +17 -0
  68. package/lib/components/yc-ai-chat/src/question-validation.d.ts +5 -0
  69. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +19 -1
  70. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +6 -0
  71. package/lib/components/yc-ai-chat/src/type.d.ts +53 -0
  72. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  73. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  74. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  75. package/lib/index.css +9 -9
  76. package/lib/index.js +2 -0
  77. package/lib/packages/components/index.js +2 -0
  78. package/lib/packages/components/yc-ai-chat/index.js +2 -0
  79. package/lib/packages/components/yc-ai-chat/src/question-card.vue.js +9 -0
  80. package/lib/packages/components/yc-ai-chat/src/question-card2.vue.js +463 -0
  81. package/lib/packages/components/yc-ai-chat/src/question-validation.js +81 -0
  82. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +708 -128
  83. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +193 -41
  84. package/lib/version.d.ts +1 -1
  85. package/lib/version.js +1 -1
  86. package/locale/en.js +1 -1
  87. package/locale/en.min.js +1 -1
  88. package/locale/en.min.mjs +1 -1
  89. package/locale/en.mjs +1 -1
  90. package/locale/ja.js +1 -1
  91. package/locale/ja.min.js +1 -1
  92. package/locale/ja.min.mjs +1 -1
  93. package/locale/ja.mjs +1 -1
  94. package/locale/ko.js +1 -1
  95. package/locale/ko.min.js +1 -1
  96. package/locale/ko.min.mjs +1 -1
  97. package/locale/ko.mjs +1 -1
  98. package/locale/zh-cn.js +1 -1
  99. package/locale/zh-cn.min.js +1 -1
  100. package/locale/zh-cn.min.mjs +1 -1
  101. package/locale/zh-cn.mjs +1 -1
  102. package/locale/zh-tw.js +1 -1
  103. package/locale/zh-tw.min.js +1 -1
  104. package/locale/zh-tw.min.mjs +1 -1
  105. package/locale/zh-tw.mjs +1 -1
  106. package/package.json +1 -1
  107. package/theme-chalk/index.css +1 -1
  108. package/theme-chalk/plus-yc-ai-chat.css +1 -1
  109. package/theme-chalk/src/yc-ai-chat.scss +914 -103
@@ -267,6 +267,11 @@
267
267
  }
268
268
  }
269
269
 
270
+ &.is-resizing-sidebar {
271
+ user-select: none;
272
+ cursor: col-resize;
273
+ }
274
+
270
275
  &__web-body {
271
276
  flex: 1;
272
277
  min-height: 0;
@@ -275,19 +280,83 @@
275
280
  }
276
281
 
277
282
  &__sidebar-wrap {
278
- width: 256px;
283
+ width: 280px;
284
+ min-width: 0;
279
285
  flex-shrink: 0;
280
- border-right: 1px solid var(--yc-line-200);
281
- background: #fcfcfd;
282
- transition: width 0.2s ease;
286
+ border-right: 1px solid #e8eef7;
287
+ background: #f0f4f9;
288
+ transition: width 0.2s cubic-bezier(0.2, 0, 0, 1);
283
289
  overflow: hidden;
284
290
 
291
+ &.is-resizing {
292
+ transition: none !important;
293
+ }
294
+
285
295
  &.is-collapsed {
286
- width: 0;
296
+ width: 0 !important;
287
297
  border-right-color: transparent;
288
298
  }
289
299
  }
290
300
 
301
+ &__sidebar-resizer {
302
+ position: relative;
303
+ z-index: 12;
304
+ width: 8px;
305
+ margin: 0 -4px;
306
+ flex-shrink: 0;
307
+ cursor: col-resize;
308
+ display: flex;
309
+ align-items: center;
310
+ justify-content: center;
311
+ outline: none;
312
+ touch-action: none;
313
+
314
+ &-line {
315
+ position: relative;
316
+ width: 2px;
317
+ height: 100%;
318
+ border-radius: 999px;
319
+ background: transparent;
320
+ transition: background-color 0.16s ease, box-shadow 0.16s ease;
321
+
322
+ &::after {
323
+ content: "";
324
+ position: absolute;
325
+ top: 50%;
326
+ left: 50%;
327
+ width: 4px;
328
+ height: 28px;
329
+ border-radius: 999px;
330
+ background: #a8c7fa;
331
+ transform: translate(-50%, -50%) scaleY(0.6);
332
+ opacity: 0;
333
+ transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
334
+ }
335
+ }
336
+
337
+ &:hover .yc-chat-studio__sidebar-resizer-line,
338
+ &:focus-visible .yc-chat-studio__sidebar-resizer-line {
339
+ background: rgba(27, 110, 243, 0.35);
340
+
341
+ &::after {
342
+ opacity: 1;
343
+ transform: translate(-50%, -50%) scaleY(1);
344
+ background: #1b6ef3;
345
+ }
346
+ }
347
+
348
+ &.is-active .yc-chat-studio__sidebar-resizer-line {
349
+ background: #1b6ef3;
350
+ box-shadow: 0 0 0 1px rgba(27, 110, 243, 0.14);
351
+
352
+ &::after {
353
+ opacity: 1;
354
+ transform: translate(-50%, -50%) scaleY(1.1);
355
+ background: #0b57d0;
356
+ }
357
+ }
358
+ }
359
+
291
360
  &__main {
292
361
  flex: 1;
293
362
  min-width: 0;
@@ -569,87 +638,144 @@
569
638
  }
570
639
  }
571
640
 
572
- /* 左侧会话栏 */
641
+ /* 左侧会话栏(Google Gemini 官方 Material 3 审美) */
573
642
  .yc-chat-sidebar {
574
643
  display: flex;
575
644
  flex-direction: column;
576
645
  width: 100%;
577
646
  height: 100%;
578
- min-width: 220px;
647
+ min-width: 0;
648
+ box-sizing: border-box;
649
+ background: #f0f4f9;
650
+ color: #1f1f1f;
579
651
 
580
652
  &__header {
581
653
  display: flex;
582
654
  flex-direction: column;
583
- gap: 8px;
584
- padding: 12px;
585
- border-bottom: 1px solid #f1f5f9;
655
+ gap: 10px;
656
+ padding: 14px 12px 10px;
657
+ flex-shrink: 0;
586
658
  }
587
659
 
588
660
  &__create-btn {
589
661
  display: inline-flex;
590
662
  align-items: center;
591
663
  justify-content: center;
592
- gap: 6px;
664
+ gap: 8px;
593
665
  width: 100%;
594
- height: 36px;
595
- padding: 0 12px;
596
- border-radius: 8px;
597
- border: 1px solid var(--yc-chat-accent, #0f172a);
598
- background: var(--yc-chat-accent, #0f172a);
599
- color: #ffffff;
600
- font-size: 13px;
601
- font-weight: 500;
666
+ height: 40px;
667
+ padding: 0 16px;
668
+ border-radius: 999px;
669
+ border: 1px solid transparent;
670
+ background: #e1ecfe;
671
+ color: #0b57d0;
672
+ font-size: 13.5px;
673
+ font-weight: 600;
674
+ letter-spacing: -0.01em;
602
675
  cursor: pointer;
603
- transition: all 0.15s ease;
676
+ box-sizing: border-box;
677
+ min-width: 0;
678
+ transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
604
679
 
605
680
  svg,
606
681
  img {
607
- width: 15px;
608
- height: 15px;
682
+ width: 16px;
683
+ height: 16px;
609
684
  object-fit: contain;
685
+ flex-shrink: 0;
610
686
  }
611
687
 
612
688
  &:hover:not(:disabled) {
613
- background: color-mix(in srgb, var(--yc-chat-accent, #0f172a) 82%, #000);
614
- border-color: color-mix(in srgb, var(--yc-chat-accent, #0f172a) 82%, #000);
689
+ background: #d3e3fd;
690
+ color: #0842a0;
691
+ box-shadow: 0 1px 3px rgba(11, 87, 208, 0.12);
692
+ }
693
+
694
+ &:active:not(:disabled) {
695
+ background: #c4dafc;
615
696
  }
616
697
 
617
698
  &:disabled {
618
- background: #f1f5f9;
619
- border-color: #e2e8f0;
620
- color: #94a3b8;
699
+ background: rgba(31, 31, 31, 0.05);
700
+ color: #8e918f;
621
701
  cursor: not-allowed;
622
702
  }
623
703
  }
624
704
 
705
+ &__create-icon {
706
+ display: inline-flex;
707
+ align-items: center;
708
+ justify-content: center;
709
+ flex-shrink: 0;
710
+ }
711
+
712
+ &__create-label {
713
+ overflow: hidden;
714
+ text-overflow: ellipsis;
715
+ white-space: nowrap;
716
+ }
717
+
625
718
  &__search {
626
719
  display: flex;
627
720
  align-items: center;
628
- gap: 6px;
629
- height: 30px;
630
- padding: 0 9px;
631
- border: 1px solid #e2e8f0;
632
- border-radius: 7px;
721
+ gap: 8px;
722
+ height: 36px;
723
+ padding: 0 12px;
724
+ border: 1px solid rgba(68, 71, 70, 0.12);
725
+ border-radius: 999px;
633
726
  background: #ffffff;
727
+ box-sizing: border-box;
728
+ transition: border-color 0.16s ease, box-shadow 0.16s ease;
634
729
 
635
730
  svg {
636
- width: 13px;
637
- height: 13px;
638
- color: #94a3b8;
731
+ width: 14px;
732
+ height: 14px;
733
+ color: #5f6368;
639
734
  flex-shrink: 0;
640
735
  }
736
+
737
+ &:focus-within {
738
+ border-color: #a8c7fa;
739
+ box-shadow: 0 2px 8px rgba(27, 110, 243, 0.1);
740
+ }
641
741
  }
642
742
 
643
743
  &__search-input {
644
744
  width: 100%;
745
+ min-width: 0;
645
746
  border: none;
646
747
  outline: none;
647
748
  background: transparent;
648
- font-size: 12px;
649
- color: #0f172a;
749
+ font-size: 13px;
750
+ color: #1f1f1f;
650
751
 
651
752
  &::placeholder {
652
- color: #94a3b8;
753
+ color: #747775;
754
+ }
755
+ }
756
+
757
+ &__search-clear {
758
+ display: inline-flex;
759
+ align-items: center;
760
+ justify-content: center;
761
+ width: 20px;
762
+ height: 20px;
763
+ padding: 0;
764
+ border: none;
765
+ border-radius: 999px;
766
+ background: transparent;
767
+ color: #5f6368;
768
+ cursor: pointer;
769
+ flex-shrink: 0;
770
+
771
+ svg {
772
+ width: 12px;
773
+ height: 12px;
774
+ }
775
+
776
+ &:hover {
777
+ background: #edf2f8;
778
+ color: #1f1f1f;
653
779
  }
654
780
  }
655
781
 
@@ -657,117 +783,394 @@
657
783
  flex: 1;
658
784
  min-height: 0;
659
785
  overflow-y: auto;
786
+ overflow-x: hidden;
787
+ padding: 2px 8px 12px;
788
+ scrollbar-width: thin;
789
+ scrollbar-color: rgba(68, 71, 70, 0.18) transparent;
790
+
791
+ &::-webkit-scrollbar {
792
+ width: 5px;
793
+ }
794
+
795
+ &::-webkit-scrollbar-thumb {
796
+ border-radius: 999px;
797
+ background: rgba(68, 71, 70, 0.18);
798
+ }
660
799
  }
661
800
 
662
801
  &__empty {
663
802
  padding: 40px 16px;
664
803
  text-align: center;
665
804
  font-size: 12.5px;
666
- color: #94a3b8;
667
- line-height: 1.6;
805
+ color: #5f6368;
806
+ line-height: 1.65;
807
+ }
808
+
809
+ &__archived-only-hint {
810
+ padding: 16px 14px 8px;
811
+ font-size: 12px;
812
+ color: #747775;
668
813
  }
669
814
 
670
- &__item {
815
+ &__groups {
671
816
  display: flex;
672
- align-items: center;
673
- justify-content: space-between;
674
- gap: 8px;
675
- width: 100%;
817
+ flex-direction: column;
818
+ gap: 6px;
676
819
  min-width: 0;
677
- padding: 2px 0;
678
820
  }
679
821
 
680
- &__item-main {
681
- flex: 1;
822
+ &__group {
823
+ display: flex;
824
+ flex-direction: column;
682
825
  min-width: 0;
826
+
827
+ &--archived {
828
+ margin-top: 6px;
829
+ padding-top: 6px;
830
+ border-top: 1px solid rgba(68, 71, 70, 0.08);
831
+ }
683
832
  }
684
833
 
685
- &__item-title {
686
- font-size: 13px;
834
+ &__group-label {
835
+ padding: 8px 14px 4px;
836
+ font-size: 11.5px;
687
837
  font-weight: 500;
688
- color: #0f172a;
838
+ color: #5f6368;
839
+ letter-spacing: 0.01em;
689
840
  overflow: hidden;
690
841
  text-overflow: ellipsis;
691
842
  white-space: nowrap;
692
- line-height: 1.4;
693
843
  }
694
844
 
695
- &__item-time {
696
- margin-top: 2px;
697
- font-size: 11px;
698
- color: #94a3b8;
699
- line-height: 1.3;
845
+ &__group-items {
846
+ display: flex;
847
+ flex-direction: column;
848
+ gap: 2px;
849
+ min-width: 0;
700
850
  }
701
851
 
702
- &__delete-btn {
703
- display: inline-flex;
852
+ &__row {
853
+ display: flex;
704
854
  align-items: center;
705
- justify-content: center;
706
- width: 24px;
707
- height: 24px;
708
- border: none;
709
- border-radius: 6px;
855
+ justify-content: space-between;
856
+ gap: 4px;
857
+ min-height: 38px;
858
+ padding: 5px 6px 5px 14px;
859
+ border-radius: 999px;
710
860
  background: transparent;
711
- color: #94a3b8;
712
- opacity: 0;
861
+ color: #1f1f1f;
713
862
  cursor: pointer;
714
- transition: all 0.14s ease;
863
+ box-sizing: border-box;
864
+ min-width: 0;
865
+ transition: background-color 0.15s ease, color 0.15s ease;
715
866
 
716
- svg {
717
- width: 14px;
718
- height: 14px;
867
+ &:hover:not(.is-active):not(.is-disabled),
868
+ &.is-menu-open:not(.is-active) {
869
+ background: rgba(31, 31, 31, 0.06);
719
870
  }
720
871
 
721
- &:hover {
722
- background: #fef2f2;
723
- color: #dc2626;
872
+ &.is-active {
873
+ background: #d3e3fd;
874
+ color: #041e49;
875
+
876
+ .yc-chat-sidebar__item-title {
877
+ color: #041e49;
878
+ font-weight: 600;
879
+ }
880
+
881
+ .yc-chat-sidebar__more-trigger {
882
+ color: #041e49;
883
+
884
+ &:hover,
885
+ &.is-open {
886
+ background: rgba(4, 30, 73, 0.1);
887
+ }
888
+ }
889
+ }
890
+
891
+ &.is-disabled {
892
+ opacity: 0.58;
893
+ cursor: not-allowed;
894
+ }
895
+
896
+ &--archived:not(.is-active) .yc-chat-sidebar__item-title {
897
+ color: #5f6368;
724
898
  }
725
899
  }
726
900
 
727
- &__item:hover &__delete-btn,
728
- &__item.active &__delete-btn {
729
- opacity: 1;
901
+ &__item-title {
902
+ flex: 1;
903
+ min-width: 0;
904
+ font-size: 13.5px;
905
+ font-weight: 400;
906
+ color: #1f1f1f;
907
+ overflow: hidden;
908
+ text-overflow: ellipsis;
909
+ white-space: nowrap;
910
+ line-height: 20px;
730
911
  }
731
912
 
732
- &__more {
733
- padding: 8px 0 12px;
734
- text-align: center;
913
+ &__item-actions {
914
+ display: inline-flex;
915
+ align-items: center;
916
+ flex-shrink: 0;
735
917
  }
736
918
 
737
- &__more-btn {
919
+ &__more-trigger {
920
+ display: inline-flex;
921
+ align-items: center;
922
+ justify-content: center;
923
+ width: 0;
924
+ height: 28px;
925
+ padding: 0;
738
926
  border: none;
927
+ border-radius: 999px;
739
928
  background: transparent;
740
- color: #475569;
741
- font-size: 12px;
929
+ color: #444746;
930
+ opacity: 0;
931
+ overflow: hidden;
932
+ pointer-events: none;
742
933
  cursor: pointer;
934
+ transition:
935
+ width 0.14s ease,
936
+ opacity 0.14s ease,
937
+ background-color 0.14s ease,
938
+ color 0.14s ease;
743
939
 
744
- &:hover:not(:disabled) {
745
- color: #0f172a;
746
- text-decoration: underline;
940
+ svg {
941
+ width: 15px;
942
+ height: 15px;
943
+ flex-shrink: 0;
747
944
  }
748
- }
749
- }
750
945
 
751
- /* 欢迎空态与示例卡片 */
752
- .yc-chat-welcome {
753
- flex: 1;
754
- display: flex;
755
- align-items: center;
756
- justify-content: center;
757
- padding: 28px 16px;
946
+ &:hover,
947
+ &.is-open {
948
+ background: rgba(31, 31, 31, 0.08);
949
+ color: #1f1f1f;
950
+ }
758
951
 
759
- &__inner {
760
- width: 100%;
761
- max-width: 620px;
762
- display: flex;
763
- flex-direction: column;
764
- align-items: center;
765
- gap: 26px;
952
+ &:focus-visible {
953
+ width: 28px;
954
+ opacity: 1;
955
+ pointer-events: auto;
956
+ outline: 2px solid #1b6ef3;
957
+ outline-offset: 1px;
958
+ }
766
959
  }
767
960
 
768
- &__hero {
961
+ &__row:hover &__more-trigger,
962
+ &__row:focus-within &__more-trigger,
963
+ &__row.is-active &__more-trigger,
964
+ &__row.is-menu-open &__more-trigger {
965
+ width: 28px;
966
+ opacity: 1;
967
+ pointer-events: auto;
968
+ }
969
+
970
+ &__archive-toggle {
769
971
  display: flex;
770
- flex-direction: column;
972
+ align-items: center;
973
+ justify-content: space-between;
974
+ gap: 8px;
975
+ width: 100%;
976
+ height: 34px;
977
+ padding: 0 12px;
978
+ border: none;
979
+ border-radius: 999px;
980
+ background: transparent;
981
+ color: #444746;
982
+ font-size: 12.5px;
983
+ font-weight: 500;
984
+ cursor: pointer;
985
+ box-sizing: border-box;
986
+ transition: background-color 0.15s ease, color 0.15s ease;
987
+
988
+ &:hover {
989
+ background: rgba(31, 31, 31, 0.05);
990
+ color: #1f1f1f;
991
+ }
992
+ }
993
+
994
+ &__archive-toggle-left {
995
+ display: inline-flex;
996
+ align-items: center;
997
+ gap: 7px;
998
+ min-width: 0;
999
+
1000
+ svg {
1001
+ width: 14px;
1002
+ height: 14px;
1003
+ color: #5f6368;
1004
+ flex-shrink: 0;
1005
+ }
1006
+ }
1007
+
1008
+ &__archive-count {
1009
+ display: inline-flex;
1010
+ align-items: center;
1011
+ justify-content: center;
1012
+ min-width: 18px;
1013
+ height: 18px;
1014
+ padding: 0 6px;
1015
+ border-radius: 999px;
1016
+ background: rgba(68, 71, 70, 0.1);
1017
+ color: #444746;
1018
+ font-size: 11px;
1019
+ font-variant-numeric: tabular-nums;
1020
+ }
1021
+
1022
+ &__archive-chevron {
1023
+ width: 14px;
1024
+ height: 14px;
1025
+ color: #5f6368;
1026
+ flex-shrink: 0;
1027
+ transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
1028
+
1029
+ &.is-expanded {
1030
+ transform: rotate(180deg);
1031
+ }
1032
+ }
1033
+
1034
+ &__more {
1035
+ padding: 8px 0 6px;
1036
+ text-align: center;
1037
+ }
1038
+
1039
+ &__more-btn {
1040
+ height: 30px;
1041
+ padding: 0 14px;
1042
+ border: 1px solid rgba(68, 71, 70, 0.14);
1043
+ border-radius: 999px;
1044
+ background: rgba(255, 255, 255, 0.72);
1045
+ color: #444746;
1046
+ font-size: 12px;
1047
+ font-weight: 500;
1048
+ cursor: pointer;
1049
+ transition: background-color 0.15s ease, color 0.15s ease;
1050
+
1051
+ &:hover:not(:disabled) {
1052
+ background: #ffffff;
1053
+ color: #0b57d0;
1054
+ }
1055
+
1056
+ &:disabled {
1057
+ opacity: 0.55;
1058
+ cursor: not-allowed;
1059
+ }
1060
+ }
1061
+
1062
+ /* Gemini Material 3 悬浮操作菜单(Teleport 到 body 避免侧栏裁切) */
1063
+ &__dropdown {
1064
+ position: fixed;
1065
+ z-index: 3500;
1066
+ min-width: 156px;
1067
+ padding: 6px;
1068
+ border-radius: 16px;
1069
+ background: #ffffff;
1070
+ border: 1px solid rgba(68, 71, 70, 0.1);
1071
+ box-shadow:
1072
+ 0 8px 24px -4px rgba(15, 23, 42, 0.12),
1073
+ 0 2px 6px rgba(15, 23, 42, 0.06);
1074
+ box-sizing: border-box;
1075
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
1076
+ transform-origin: top right;
1077
+ }
1078
+
1079
+ &__menu-item {
1080
+ display: flex;
1081
+ align-items: center;
1082
+ gap: 10px;
1083
+ width: 100%;
1084
+ height: 36px;
1085
+ padding: 0 12px;
1086
+ border: none;
1087
+ border-radius: 10px;
1088
+ background: transparent;
1089
+ color: #1f1f1f;
1090
+ font-size: 13.5px;
1091
+ font-weight: 450;
1092
+ text-align: left;
1093
+ cursor: pointer;
1094
+ box-sizing: border-box;
1095
+ transition: background-color 0.14s ease, color 0.14s ease;
1096
+
1097
+ svg {
1098
+ width: 16px;
1099
+ height: 16px;
1100
+ color: #444746;
1101
+ flex-shrink: 0;
1102
+ transition: color 0.14s ease;
1103
+ }
1104
+
1105
+ &:hover:not(:disabled) {
1106
+ background: #f0f4f9;
1107
+ color: #041e49;
1108
+
1109
+ svg {
1110
+ color: #0b57d0;
1111
+ }
1112
+ }
1113
+
1114
+ &.is-danger {
1115
+ color: #444746;
1116
+
1117
+ &:hover:not(:disabled) {
1118
+ background: #fce8e6;
1119
+ color: #b3261e;
1120
+
1121
+ svg {
1122
+ color: #b3261e;
1123
+ }
1124
+ }
1125
+ }
1126
+
1127
+ &:disabled {
1128
+ opacity: 0.45;
1129
+ cursor: not-allowed;
1130
+ }
1131
+ }
1132
+
1133
+ &__menu-divider {
1134
+ height: 1px;
1135
+ margin: 4px 8px;
1136
+ background: rgba(68, 71, 70, 0.08);
1137
+ }
1138
+ }
1139
+
1140
+ .yc-gemini-menu-pop-enter-active {
1141
+ transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.2, 0, 0, 1);
1142
+ }
1143
+
1144
+ .yc-gemini-menu-pop-leave-active {
1145
+ transition: opacity 0.1s ease, transform 0.1s ease;
1146
+ }
1147
+
1148
+ .yc-gemini-menu-pop-enter-from,
1149
+ .yc-gemini-menu-pop-leave-to {
1150
+ opacity: 0;
1151
+ transform: scale(0.94) translateY(-4px);
1152
+ }
1153
+
1154
+ /* 欢迎空态与示例卡片 */
1155
+ .yc-chat-welcome {
1156
+ flex: 1;
1157
+ display: flex;
1158
+ align-items: center;
1159
+ justify-content: center;
1160
+ padding: 28px 16px;
1161
+
1162
+ &__inner {
1163
+ width: 100%;
1164
+ max-width: 620px;
1165
+ display: flex;
1166
+ flex-direction: column;
1167
+ align-items: center;
1168
+ gap: 26px;
1169
+ }
1170
+
1171
+ &__hero {
1172
+ display: flex;
1173
+ flex-direction: column;
771
1174
  align-items: center;
772
1175
  text-align: center;
773
1176
  gap: 12px;
@@ -2456,3 +2859,411 @@
2456
2859
  }
2457
2860
  }
2458
2861
  }
2862
+
2863
+ /* Gemini 官方 Material 3 交互问答卡 */
2864
+ .yc-chat-question-card {
2865
+ display: flex;
2866
+ flex-direction: column;
2867
+ gap: 14px;
2868
+ width: 100%;
2869
+ padding: 18px 20px 16px;
2870
+ border-radius: 20px;
2871
+ background: #f8fafd;
2872
+ border: 1px solid #e3e9f2;
2873
+ color: #1f1f1f;
2874
+ box-sizing: border-box;
2875
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
2876
+
2877
+ &__header {
2878
+ display: flex;
2879
+ align-items: center;
2880
+ justify-content: space-between;
2881
+ gap: 12px;
2882
+ }
2883
+
2884
+ &__title-wrap {
2885
+ display: inline-flex;
2886
+ align-items: center;
2887
+ gap: 9px;
2888
+ min-width: 0;
2889
+ }
2890
+
2891
+ &__badge-icon {
2892
+ display: inline-flex;
2893
+ align-items: center;
2894
+ justify-content: center;
2895
+ width: 26px;
2896
+ height: 26px;
2897
+ border-radius: 999px;
2898
+ background: #e8f0fe;
2899
+ color: #1a73e8;
2900
+ flex-shrink: 0;
2901
+
2902
+ svg {
2903
+ width: 15px;
2904
+ height: 15px;
2905
+ }
2906
+ }
2907
+
2908
+ &__title {
2909
+ font-size: 14.5px;
2910
+ font-weight: 600;
2911
+ letter-spacing: -0.01em;
2912
+ color: #1f1f1f;
2913
+ }
2914
+
2915
+ &__status {
2916
+ display: inline-flex;
2917
+ align-items: center;
2918
+ height: 24px;
2919
+ padding: 0 10px;
2920
+ border-radius: 999px;
2921
+ font-size: 11.5px;
2922
+ font-weight: 500;
2923
+ background: #eef2f7;
2924
+ color: #5f6368;
2925
+ flex-shrink: 0;
2926
+
2927
+ &.is-pending {
2928
+ background: #e8f0fe;
2929
+ color: #0b57d0;
2930
+ }
2931
+
2932
+ &.is-answered {
2933
+ background: #e6f4ea;
2934
+ color: #137333;
2935
+ }
2936
+
2937
+ &.is-expired,
2938
+ &.is-invalidated,
2939
+ &.is-superseded {
2940
+ background: #fef7e0;
2941
+ color: #b06000;
2942
+ }
2943
+ }
2944
+
2945
+ &__questions {
2946
+ display: flex;
2947
+ flex-direction: column;
2948
+ gap: 16px;
2949
+ }
2950
+
2951
+ &__question {
2952
+ display: flex;
2953
+ flex-direction: column;
2954
+ gap: 10px;
2955
+ min-width: 0;
2956
+ margin: 0;
2957
+ padding: 0;
2958
+ border: 0;
2959
+ }
2960
+
2961
+ &__legend {
2962
+ display: flex;
2963
+ align-items: baseline;
2964
+ flex-wrap: wrap;
2965
+ gap: 8px;
2966
+ padding: 0;
2967
+ margin-bottom: 2px;
2968
+ font-size: 14px;
2969
+ font-weight: 500;
2970
+ line-height: 1.55;
2971
+ color: #1f1f1f;
2972
+ }
2973
+
2974
+ &__mode-tag {
2975
+ display: inline-flex;
2976
+ align-items: center;
2977
+ height: 20px;
2978
+ padding: 0 8px;
2979
+ border-radius: 999px;
2980
+ background: #edf2f8;
2981
+ color: #5f6368;
2982
+ font-size: 11px;
2983
+ font-weight: 500;
2984
+ }
2985
+
2986
+ &__options {
2987
+ display: flex;
2988
+ flex-direction: column;
2989
+ gap: 8px;
2990
+ }
2991
+
2992
+ &__option {
2993
+ position: relative;
2994
+ display: flex;
2995
+ align-items: flex-start;
2996
+ gap: 12px;
2997
+ padding: 12px 14px;
2998
+ border-radius: 14px;
2999
+ background: #ffffff;
3000
+ border: 1px solid #e4eaf2;
3001
+ cursor: pointer;
3002
+ box-sizing: border-box;
3003
+ transition:
3004
+ background-color 0.16s ease,
3005
+ border-color 0.16s ease,
3006
+ box-shadow 0.16s ease;
3007
+
3008
+ &:hover:not(.is-disabled):not(.is-selected) {
3009
+ background: #f3f7fe;
3010
+ border-color: #c2d4ee;
3011
+ }
3012
+
3013
+ &.is-selected {
3014
+ background: #edf3fe;
3015
+ border-color: #1b6ef3;
3016
+ box-shadow: 0 0 0 1px rgba(27, 110, 243, 0.14);
3017
+
3018
+ .yc-chat-question-card__option-label {
3019
+ color: #041e49;
3020
+ }
3021
+ }
3022
+
3023
+ &.is-disabled {
3024
+ cursor: default;
3025
+ opacity: 0.78;
3026
+ }
3027
+ }
3028
+
3029
+ &__native-input {
3030
+ position: absolute;
3031
+ opacity: 0;
3032
+ width: 1px;
3033
+ height: 1px;
3034
+ margin: 0;
3035
+ pointer-events: none;
3036
+ }
3037
+
3038
+ &__control {
3039
+ position: relative;
3040
+ display: inline-flex;
3041
+ align-items: center;
3042
+ justify-content: center;
3043
+ width: 18px;
3044
+ height: 18px;
3045
+ margin-top: 2px;
3046
+ flex-shrink: 0;
3047
+ border: 1.75px solid #747775;
3048
+ background: #ffffff;
3049
+ color: #ffffff;
3050
+ box-sizing: border-box;
3051
+ transition:
3052
+ border-color 0.15s ease,
3053
+ background-color 0.15s ease,
3054
+ box-shadow 0.15s ease;
3055
+
3056
+ &.is-single {
3057
+ border-radius: 999px;
3058
+
3059
+ &::after {
3060
+ content: "";
3061
+ width: 8px;
3062
+ height: 8px;
3063
+ border-radius: 999px;
3064
+ background: #1b6ef3;
3065
+ transform: scale(0);
3066
+ transition: transform 0.14s cubic-bezier(0.2, 0, 0, 1);
3067
+ }
3068
+
3069
+ &.is-checked {
3070
+ border-color: #1b6ef3;
3071
+ background: #ffffff;
3072
+
3073
+ &::after {
3074
+ transform: scale(1);
3075
+ }
3076
+ }
3077
+ }
3078
+
3079
+ &.is-multiple {
3080
+ border-radius: 5px;
3081
+
3082
+ svg {
3083
+ width: 11px;
3084
+ height: 11px;
3085
+ }
3086
+
3087
+ &.is-checked {
3088
+ border-color: #1b6ef3;
3089
+ background: #1b6ef3;
3090
+ }
3091
+ }
3092
+ }
3093
+
3094
+ &__option:focus-within &__control {
3095
+ box-shadow: 0 0 0 3px rgba(27, 110, 243, 0.16);
3096
+ }
3097
+
3098
+ &__option-body {
3099
+ display: flex;
3100
+ flex-direction: column;
3101
+ gap: 3px;
3102
+ flex: 1;
3103
+ min-width: 0;
3104
+ }
3105
+
3106
+ &__option-label {
3107
+ font-size: 13.5px;
3108
+ font-weight: 500;
3109
+ line-height: 1.45;
3110
+ color: #1f1f1f;
3111
+ word-break: break-word;
3112
+ }
3113
+
3114
+ &__option-desc {
3115
+ font-size: 12.5px;
3116
+ line-height: 1.5;
3117
+ color: #5f6368;
3118
+ word-break: break-word;
3119
+ }
3120
+
3121
+ &__event {
3122
+ display: flex;
3123
+ flex-wrap: wrap;
3124
+ align-items: center;
3125
+ gap: 6px;
3126
+ margin-top: 4px;
3127
+ font-size: 11.5px;
3128
+ color: #5f6368;
3129
+
3130
+ code {
3131
+ padding: 1px 6px;
3132
+ border-radius: 6px;
3133
+ background: #eef2f7;
3134
+ color: #444746;
3135
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
3136
+ font-size: 11px;
3137
+ }
3138
+
3139
+ em {
3140
+ font-style: normal;
3141
+ color: #b06000;
3142
+ }
3143
+ }
3144
+
3145
+ &__other-wrap {
3146
+ display: flex;
3147
+ flex-direction: column;
3148
+ gap: 8px;
3149
+ }
3150
+
3151
+ &__textarea-box {
3152
+ padding: 0 2px;
3153
+ }
3154
+
3155
+ &__textarea {
3156
+ box-sizing: border-box;
3157
+ width: 100%;
3158
+ padding: 10px 14px;
3159
+ border-radius: 14px;
3160
+ border: 1px solid #c2d4ee;
3161
+ background: #ffffff;
3162
+ color: #1f1f1f;
3163
+ font-family: inherit;
3164
+ font-size: 13.5px;
3165
+ line-height: 1.55;
3166
+ resize: vertical;
3167
+ outline: none;
3168
+ transition: border-color 0.16s ease, box-shadow 0.16s ease;
3169
+
3170
+ &::placeholder {
3171
+ color: #747775;
3172
+ }
3173
+
3174
+ &:focus {
3175
+ border-color: #1b6ef3;
3176
+ box-shadow: 0 0 0 3px rgba(27, 110, 243, 0.12);
3177
+ }
3178
+
3179
+ &:disabled {
3180
+ background: #f0f4f9;
3181
+ color: #5f6368;
3182
+ }
3183
+ }
3184
+
3185
+ &__notice {
3186
+ margin: 0;
3187
+ padding: 8px 12px;
3188
+ border-radius: 10px;
3189
+ background: #fef7e0;
3190
+ color: #9a5b00;
3191
+ font-size: 12px;
3192
+ line-height: 1.5;
3193
+ }
3194
+
3195
+ &__actions {
3196
+ display: flex;
3197
+ align-items: center;
3198
+ justify-content: flex-end;
3199
+ gap: 8px;
3200
+ margin-top: 2px;
3201
+ }
3202
+
3203
+ &__btn {
3204
+ display: inline-flex;
3205
+ align-items: center;
3206
+ justify-content: center;
3207
+ height: 36px;
3208
+ padding: 0 18px;
3209
+ border: 1px solid transparent;
3210
+ border-radius: 999px;
3211
+ font-size: 13.5px;
3212
+ font-weight: 500;
3213
+ cursor: pointer;
3214
+ transition:
3215
+ background-color 0.16s ease,
3216
+ color 0.16s ease,
3217
+ box-shadow 0.16s ease,
3218
+ opacity 0.16s ease;
3219
+
3220
+ &--cancel {
3221
+ background: transparent;
3222
+ color: #444746;
3223
+
3224
+ &:hover:not(:disabled) {
3225
+ background: #e8edf5;
3226
+ color: #1f1f1f;
3227
+ }
3228
+ }
3229
+
3230
+ &--submit {
3231
+ padding: 0 22px;
3232
+ background: #0b57d0;
3233
+ color: #ffffff;
3234
+
3235
+ &:hover:not(:disabled) {
3236
+ background: #1b6ef3;
3237
+ box-shadow: 0 2px 8px rgba(27, 110, 243, 0.24);
3238
+ }
3239
+
3240
+ &:disabled {
3241
+ background: #e3e8ef;
3242
+ color: #8e918f;
3243
+ box-shadow: none;
3244
+ }
3245
+ }
3246
+
3247
+ &:disabled {
3248
+ cursor: not-allowed;
3249
+ }
3250
+ }
3251
+
3252
+ &.is-compact {
3253
+ gap: 12px;
3254
+ padding: 14px 14px 12px;
3255
+ border-radius: 16px;
3256
+
3257
+ .yc-chat-question-card__option {
3258
+ padding: 10px 12px;
3259
+ border-radius: 12px;
3260
+ gap: 10px;
3261
+ }
3262
+
3263
+ .yc-chat-question-card__btn {
3264
+ height: 34px;
3265
+ padding: 0 16px;
3266
+ font-size: 13px;
3267
+ }
3268
+ }
3269
+ }