yc-agent-ui 1.2.1 → 1.2.2

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 (136) hide show
  1. package/README.md +26 -5
  2. package/es/components/chart/src/chart-card.vue.d.ts +56 -10
  3. package/es/components/chart/src/chart-container.vue.d.ts +11 -1
  4. package/es/components/chart/src/theme.d.ts +1 -1
  5. package/es/components/dialog/index.d.ts +6 -6
  6. package/es/components/dialog/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog-form/index.d.ts +6 -6
  8. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  9. package/es/components/display-item/index.d.ts +21 -21
  10. package/es/components/display-item/src/index.vue.d.ts +19 -19
  11. package/es/components/drawer-form/index.d.ts +18 -18
  12. package/es/components/drawer-form/src/index.vue.d.ts +10 -10
  13. package/es/components/form/index.d.ts +12 -12
  14. package/es/components/form/src/form-content.vue.d.ts +12 -12
  15. package/es/components/form/src/index.vue.d.ts +12 -12
  16. package/es/components/form-item/index.d.ts +12 -12
  17. package/es/components/form-item/src/index.vue.d.ts +10 -10
  18. package/es/components/page/index.d.ts +258 -258
  19. package/es/components/page/src/index.vue.d.ts +90 -90
  20. package/es/components/render/index.d.ts +1 -1
  21. package/es/components/render/src/index.vue.d.ts +1 -1
  22. package/es/components/search/index.d.ts +78 -78
  23. package/es/components/search/src/index.vue.d.ts +30 -30
  24. package/es/components/table/src/table-column.vue.d.ts +46 -46
  25. package/es/components/yc-ai-chat/index.d.ts +1 -0
  26. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  28. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +10 -1
  29. package/es/components/yc-ai-chat/src/studio.vue.d.ts +3 -0
  30. package/es/components/yc-plus-page/src/index.vue.d.ts +264 -264
  31. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  32. package/es/hooks/usePlusFormReset.d.ts +144 -144
  33. package/es/index.css +9 -9
  34. package/es/index.mjs +1 -0
  35. package/es/packages/components/chart/src/chart-card2.vue.mjs +9 -2
  36. package/es/packages/components/chart/src/chart-container2.vue.mjs +13 -1
  37. package/es/packages/components/chart/src/theme.mjs +18 -10
  38. package/es/packages/components/data-table/capability.mjs +1 -1
  39. package/es/packages/components/index.mjs +1 -0
  40. package/es/packages/components/yc-ai-chat/index.mjs +1 -0
  41. package/es/packages/components/yc-ai-chat/src/bubble2.vue.mjs +21 -13
  42. package/es/packages/components/yc-ai-chat/src/select2.vue.mjs +9 -4
  43. package/es/packages/components/yc-ai-chat/src/sender2.vue.mjs +5 -3
  44. package/es/packages/components/yc-ai-chat/src/sidebar2.vue.mjs +50 -45
  45. package/es/packages/components/yc-ai-chat/src/studio2.vue.mjs +271 -56
  46. package/es/packages/components/yc-gradient-card/capability.mjs +8 -8
  47. package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +48 -24
  48. package/es/packages/registry/types.mjs +1 -1
  49. package/es/registry/types.d.ts +1 -1
  50. package/es/version.d.ts +1 -1
  51. package/es/version.mjs +1 -1
  52. package/index.css +1 -1
  53. package/index.js +3925 -641
  54. package/index.min.js +42 -39
  55. package/index.min.mjs +39 -36
  56. package/index.mjs +4001 -727
  57. package/lib/components/chart/src/chart-card.vue.d.ts +56 -10
  58. package/lib/components/chart/src/chart-container.vue.d.ts +11 -1
  59. package/lib/components/chart/src/theme.d.ts +1 -1
  60. package/lib/components/dialog/index.d.ts +6 -6
  61. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  62. package/lib/components/dialog-form/index.d.ts +6 -6
  63. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  64. package/lib/components/display-item/index.d.ts +21 -21
  65. package/lib/components/display-item/src/index.vue.d.ts +19 -19
  66. package/lib/components/drawer-form/index.d.ts +18 -18
  67. package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
  68. package/lib/components/form/index.d.ts +12 -12
  69. package/lib/components/form/src/form-content.vue.d.ts +12 -12
  70. package/lib/components/form/src/index.vue.d.ts +12 -12
  71. package/lib/components/form-item/index.d.ts +12 -12
  72. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  73. package/lib/components/page/index.d.ts +258 -258
  74. package/lib/components/page/src/index.vue.d.ts +90 -90
  75. package/lib/components/render/index.d.ts +1 -1
  76. package/lib/components/render/src/index.vue.d.ts +1 -1
  77. package/lib/components/search/index.d.ts +78 -78
  78. package/lib/components/search/src/index.vue.d.ts +30 -30
  79. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  80. package/lib/components/yc-ai-chat/index.d.ts +1 -0
  81. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -0
  82. package/lib/components/yc-ai-chat/src/select.vue.d.ts +1 -0
  83. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +10 -1
  84. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +3 -0
  85. package/lib/components/yc-plus-page/src/index.vue.d.ts +264 -264
  86. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  87. package/lib/hooks/usePlusFormReset.d.ts +144 -144
  88. package/lib/index.css +8 -8
  89. package/lib/index.js +41 -0
  90. package/lib/packages/components/chart/src/chart-card2.vue.js +9 -2
  91. package/lib/packages/components/chart/src/chart-container2.vue.js +13 -1
  92. package/lib/packages/components/chart/src/theme.js +18 -10
  93. package/lib/packages/components/data-table/capability.js +1 -1
  94. package/lib/packages/components/index.js +41 -0
  95. package/lib/packages/components/yc-ai-chat/index.js +41 -0
  96. package/lib/packages/components/yc-ai-chat/src/bubble2.vue.js +21 -13
  97. package/lib/packages/components/yc-ai-chat/src/select2.vue.js +9 -4
  98. package/lib/packages/components/yc-ai-chat/src/sender2.vue.js +5 -3
  99. package/lib/packages/components/yc-ai-chat/src/sidebar2.vue.js +49 -44
  100. package/lib/packages/components/yc-ai-chat/src/studio2.vue.js +270 -55
  101. package/lib/packages/components/yc-gradient-card/capability.js +8 -8
  102. package/lib/packages/components/yc-input/src/stepper-input2.vue.js +47 -23
  103. package/lib/packages/registry/types.js +1 -1
  104. package/lib/registry/types.d.ts +1 -1
  105. package/lib/version.d.ts +1 -1
  106. package/lib/version.js +1 -1
  107. package/locale/en.js +1 -1
  108. package/locale/en.min.js +1 -1
  109. package/locale/en.min.mjs +1 -1
  110. package/locale/en.mjs +1 -1
  111. package/locale/ja.js +1 -1
  112. package/locale/ja.min.js +1 -1
  113. package/locale/ja.min.mjs +1 -1
  114. package/locale/ja.mjs +1 -1
  115. package/locale/ko.js +1 -1
  116. package/locale/ko.min.js +1 -1
  117. package/locale/ko.min.mjs +1 -1
  118. package/locale/ko.mjs +1 -1
  119. package/locale/zh-cn.js +1 -1
  120. package/locale/zh-cn.min.js +1 -1
  121. package/locale/zh-cn.min.mjs +1 -1
  122. package/locale/zh-cn.mjs +1 -1
  123. package/locale/zh-tw.js +1 -1
  124. package/locale/zh-tw.min.js +1 -1
  125. package/locale/zh-tw.min.mjs +1 -1
  126. package/locale/zh-tw.mjs +1 -1
  127. package/package.json +1 -1
  128. package/theme-chalk/index.css +1 -1
  129. package/theme-chalk/plus-search.css +1 -1
  130. package/theme-chalk/plus-yc-ai-chat.css +1 -1
  131. package/theme-chalk/plus-yc-data-table.css +1 -1
  132. package/theme-chalk/plus-yc-property-table.css +1 -1
  133. package/theme-chalk/src/search.scss +93 -3
  134. package/theme-chalk/src/yc-ai-chat.scss +774 -10
  135. package/theme-chalk/src/yc-data-table.scss +57 -42
  136. package/theme-chalk/src/yc-property-table.scss +35 -14
@@ -391,6 +391,19 @@
391
391
  cursor: not-allowed;
392
392
  }
393
393
 
394
+ &.is-chip {
395
+ height: 30px;
396
+ max-width: 220px;
397
+ padding: 0 10px;
398
+ border-radius: 999px;
399
+ background: #ffffff;
400
+
401
+ .yc-chat-select__prefix {
402
+ padding-right: 0;
403
+ border-right: none;
404
+ }
405
+ }
406
+
394
407
  &__prefix {
395
408
  font-size: 11.5px;
396
409
  font-weight: 500;
@@ -581,22 +594,24 @@
581
594
  height: 36px;
582
595
  padding: 0 12px;
583
596
  border-radius: 8px;
584
- border: 1px solid #0f172a;
585
- background: #0f172a;
597
+ border: 1px solid var(--yc-chat-accent, #0f172a);
598
+ background: var(--yc-chat-accent, #0f172a);
586
599
  color: #ffffff;
587
600
  font-size: 13px;
588
601
  font-weight: 500;
589
602
  cursor: pointer;
590
603
  transition: all 0.15s ease;
591
604
 
592
- svg {
605
+ svg,
606
+ img {
593
607
  width: 15px;
594
608
  height: 15px;
609
+ object-fit: contain;
595
610
  }
596
611
 
597
612
  &:hover:not(:disabled) {
598
- background: #1e293b;
599
- border-color: #1e293b;
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);
600
615
  }
601
616
 
602
617
  &:disabled {
@@ -891,9 +906,20 @@
891
906
  align-items: center;
892
907
  justify-content: center;
893
908
  flex-shrink: 0;
894
- background: #0f172a;
909
+ background: var(--yc-chat-accent, #0f172a);
895
910
  color: #ffffff;
896
911
 
912
+ &.is-custom {
913
+ background: transparent;
914
+
915
+ svg,
916
+ img {
917
+ width: 100%;
918
+ height: 100%;
919
+ object-fit: contain;
920
+ }
921
+ }
922
+
897
923
  svg {
898
924
  width: 14px;
899
925
  height: 14px;
@@ -1311,7 +1337,7 @@
1311
1337
  height: 32px;
1312
1338
  border-radius: 50%;
1313
1339
  border: none;
1314
- background: #0f172a;
1340
+ background: var(--yc-chat-accent, #0f172a);
1315
1341
  color: #ffffff;
1316
1342
  display: inline-flex;
1317
1343
  align-items: center;
@@ -1326,7 +1352,7 @@
1326
1352
  }
1327
1353
 
1328
1354
  &:hover:not(:disabled) {
1329
- background: #1e293b;
1355
+ background: color-mix(in srgb, var(--yc-chat-accent, #0f172a) 82%, #000);
1330
1356
  transform: translateY(-1px);
1331
1357
  }
1332
1358
 
@@ -1338,7 +1364,7 @@
1338
1364
  }
1339
1365
 
1340
1366
  &.is-stop {
1341
- background: #0f172a;
1367
+ background: var(--yc-chat-accent, #0f172a);
1342
1368
  color: #ffffff;
1343
1369
  }
1344
1370
  }
@@ -1366,7 +1392,8 @@
1366
1392
  gap: 6px;
1367
1393
  margin-bottom: 6px;
1368
1394
 
1369
- .yc-chat-sender__chip {
1395
+ .yc-chat-sender__chip,
1396
+ .yc-chat-select.is-chip {
1370
1397
  height: 25px;
1371
1398
  padding: 0 9px;
1372
1399
  font-size: 11.5px;
@@ -1672,6 +1699,743 @@
1672
1699
  }
1673
1700
  }
1674
1701
 
1702
+ @keyframes yc-gemini-shimmer {
1703
+ 0% {
1704
+ background-position: 100% 0;
1705
+ }
1706
+ 100% {
1707
+ background-position: -120% 0;
1708
+ }
1709
+ }
1710
+
1711
+ @keyframes yc-gemini-pulse {
1712
+ 0% {
1713
+ box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.24);
1714
+ }
1715
+ 70% {
1716
+ box-shadow: 0 0 0 5px rgba(26, 115, 232, 0);
1717
+ }
1718
+ 100% {
1719
+ box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
1720
+ }
1721
+ }
1722
+
1723
+ /* Gemini 风格:工具调用轨迹(ThoughtChain) */
1724
+ .elx-thought-chain {
1725
+ width: 100%;
1726
+ padding: 14px 16px;
1727
+ border-radius: 16px;
1728
+ background: #f8fafd;
1729
+ border: 1px solid #e4eaf2;
1730
+ color: #1f1f1f;
1731
+ box-sizing: border-box;
1732
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
1733
+
1734
+ .el-timeline {
1735
+ margin: 0;
1736
+ padding: 0;
1737
+ }
1738
+
1739
+ .el-timeline-item {
1740
+ padding-bottom: 12px;
1741
+
1742
+ &:last-child {
1743
+ padding-bottom: 0;
1744
+ }
1745
+ }
1746
+
1747
+ .el-timeline-item__tail {
1748
+ left: 9.5px;
1749
+ top: 26px;
1750
+ height: calc(100% - 27px);
1751
+ border-left: 1.5px solid #dde3ea;
1752
+ }
1753
+
1754
+ .el-timeline-item__dot {
1755
+ top: 3px;
1756
+ left: 0;
1757
+ display: inline-flex;
1758
+ align-items: center;
1759
+ justify-content: center;
1760
+ }
1761
+
1762
+ .elx-thought-chain__item-dot {
1763
+ margin: 0 !important;
1764
+ display: inline-flex;
1765
+ align-items: center;
1766
+ justify-content: center;
1767
+ }
1768
+
1769
+ .el-timeline-item__wrapper {
1770
+ padding-left: 30px;
1771
+ top: 0;
1772
+ }
1773
+
1774
+ .el-timeline-item__timestamp {
1775
+ margin-bottom: 4px;
1776
+ color: #1f1f1f;
1777
+ font-size: 13.5px;
1778
+ font-weight: 500;
1779
+ line-height: 22px;
1780
+ }
1781
+
1782
+ .el-timeline-item__content,
1783
+ .el-collapse,
1784
+ .el-collapse-item,
1785
+ .el-collapse-item__wrap {
1786
+ width: 100%;
1787
+ max-width: 100%;
1788
+ }
1789
+
1790
+ .el-collapse {
1791
+ border: none;
1792
+ }
1793
+
1794
+ .el-collapse-item__header {
1795
+ width: calc(100% + 8px);
1796
+ height: auto !important;
1797
+ min-height: 26px;
1798
+ margin: 0 0 0 -8px !important;
1799
+ padding: 3px 8px;
1800
+ box-sizing: border-box;
1801
+ border: none;
1802
+ border-radius: 8px;
1803
+ background: transparent;
1804
+ justify-content: space-between;
1805
+ align-items: center;
1806
+ gap: 8px;
1807
+ color: #1f1f1f;
1808
+ font-size: 13.5px;
1809
+ font-weight: 500;
1810
+ line-height: 20px;
1811
+ letter-spacing: -0.01em;
1812
+ transition: background-color 0.16s ease, color 0.16s ease;
1813
+
1814
+ &:hover {
1815
+ background: #edf2f8;
1816
+ }
1817
+ }
1818
+
1819
+ .el-collapse-item__title {
1820
+ flex: 1;
1821
+ min-width: 0;
1822
+ overflow: hidden;
1823
+ text-overflow: ellipsis;
1824
+ white-space: nowrap;
1825
+ }
1826
+
1827
+ .el-collapse-item__arrow {
1828
+ flex-shrink: 0;
1829
+ margin: 0 !important;
1830
+ color: #5f6368;
1831
+ font-size: 12px;
1832
+ transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.16s ease;
1833
+ }
1834
+
1835
+ .el-collapse-item__header:hover .el-collapse-item__arrow {
1836
+ color: #1f1f1f;
1837
+ }
1838
+
1839
+ .elx-thought-chain__item-dot .el-button {
1840
+ width: 20px;
1841
+ height: 20px;
1842
+ min-height: 20px;
1843
+ padding: 0;
1844
+ border: none !important;
1845
+ border-radius: 999px;
1846
+ background: #e8eef6 !important;
1847
+ box-shadow: none !important;
1848
+ opacity: 1 !important;
1849
+
1850
+ &::before {
1851
+ display: none !important;
1852
+ }
1853
+
1854
+ .el-icon {
1855
+ font-size: 11px;
1856
+ margin: 0;
1857
+ }
1858
+
1859
+ .el-icon svg path {
1860
+ fill: #444746 !important;
1861
+ }
1862
+ }
1863
+
1864
+ .elx-thought-chain__item-dot .el-button.is-loading {
1865
+ background: #e8f0fe !important;
1866
+ animation: yc-gemini-pulse 2s ease-out infinite;
1867
+
1868
+ .el-icon svg path {
1869
+ fill: #1a73e8 !important;
1870
+ }
1871
+ }
1872
+
1873
+ .elx-thought-chain__item-dot .el-button[style*="#67c23a"],
1874
+ .elx-thought-chain__item-dot .el-button[style*="103, 194, 58"] {
1875
+ background: #e6f4ea !important;
1876
+
1877
+ .el-icon svg path {
1878
+ fill: #188038 !important;
1879
+ }
1880
+ }
1881
+
1882
+ .elx-thought-chain__item-dot .el-button[style*="#f56c6c"],
1883
+ .elx-thought-chain__item-dot .el-button[style*="245, 108, 108"] {
1884
+ background: #fce8e6 !important;
1885
+
1886
+ .el-icon svg path {
1887
+ fill: #c5221f !important;
1888
+ }
1889
+ }
1890
+
1891
+ .el-collapse-item__content {
1892
+ padding: 0 !important;
1893
+ margin: 0 !important;
1894
+ background: transparent !important;
1895
+ border: none !important;
1896
+ }
1897
+
1898
+ .elx-thought-chain__content {
1899
+ width: 100%;
1900
+ max-width: 100%;
1901
+ margin: 6px 0 2px;
1902
+ padding: 10px 14px;
1903
+ border-radius: 12px;
1904
+ background: #ffffff;
1905
+ border: 1px solid #e4eaf2;
1906
+ color: #444746;
1907
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
1908
+ font-size: 12.5px;
1909
+ line-height: 1.65;
1910
+ box-sizing: border-box;
1911
+ }
1912
+
1913
+ .el-timeline-item:has(.el-button.is-loading) {
1914
+ .el-collapse-item__title {
1915
+ background: linear-gradient(90deg, #1f1f1f 0%, #1a73e8 45%, #4285f4 55%, #1f1f1f 100%);
1916
+ background-size: 220% 100%;
1917
+ -webkit-background-clip: text;
1918
+ background-clip: text;
1919
+ color: transparent;
1920
+ animation: yc-gemini-shimmer 2.4s ease-in-out infinite;
1921
+ }
1922
+ }
1923
+
1924
+ .el-timeline-item:has([style*="#f56c6c"]),
1925
+ .el-timeline-item:has([style*="245, 108, 108"]) {
1926
+ .el-collapse-item__title {
1927
+ color: #b3261e;
1928
+ }
1929
+
1930
+ .elx-thought-chain__content {
1931
+ background: #fff8f7;
1932
+ border-color: #f6c7c4;
1933
+ color: #9c1f19;
1934
+ }
1935
+ }
1936
+ }
1937
+
1938
+ /* Gemini 风格:推理思考折叠块(Thinking) */
1939
+ .elx-thinking {
1940
+ width: 100%;
1941
+ margin: 0 !important;
1942
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
1943
+
1944
+ .elx-thinking__trigger {
1945
+ display: inline-flex;
1946
+ align-items: center;
1947
+ gap: 8px;
1948
+ width: auto !important;
1949
+ height: 34px;
1950
+ margin-bottom: 0;
1951
+ padding: 0 14px 0 12px;
1952
+ border: 1px solid transparent;
1953
+ border-radius: 999px;
1954
+ background: #f0f4f9;
1955
+ color: #444746;
1956
+ font-size: 13.5px;
1957
+ font-weight: 500;
1958
+ letter-spacing: -0.01em;
1959
+ transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
1960
+
1961
+ &:hover {
1962
+ background: #e6edf6;
1963
+ color: #1f1f1f;
1964
+ }
1965
+ }
1966
+
1967
+ .elx-thinking__status-icon {
1968
+ display: inline-flex;
1969
+ align-items: center;
1970
+ justify-content: center;
1971
+ font-size: 15px;
1972
+ }
1973
+
1974
+ .elx-thinking__end-color,
1975
+ .elx-thinking__start-color {
1976
+ color: #1a73e8 !important;
1977
+ }
1978
+
1979
+ .elx-thinking__trigger--thinking {
1980
+ background: #edf3fe;
1981
+ border-color: rgba(26, 115, 232, 0.16);
1982
+
1983
+ .elx-thinking__label {
1984
+ background: linear-gradient(90deg, #0b57d0 0%, #4285f4 45%, #7c4dff 55%, #0b57d0 100%);
1985
+ background-size: 220% 100%;
1986
+ -webkit-background-clip: text;
1987
+ background-clip: text;
1988
+ color: transparent !important;
1989
+ animation: yc-gemini-shimmer 2.2s ease-in-out infinite;
1990
+ }
1991
+ }
1992
+
1993
+ .elx-thinking__label {
1994
+ color: #1f1f1f !important;
1995
+ line-height: 1;
1996
+ }
1997
+
1998
+ .elx-thinking__arrow {
1999
+ margin-left: 2px;
2000
+ color: #5f6368;
2001
+ font-size: 12px;
2002
+ }
2003
+
2004
+ .elx-thinking__content-wrapper {
2005
+ margin-top: 10px;
2006
+ padding: 2px 0 2px 16px;
2007
+ border-left: 2px solid #d3e3fd;
2008
+ background: transparent !important;
2009
+ }
2010
+
2011
+ .elx-thinking__content pre {
2012
+ border: none !important;
2013
+ background: transparent !important;
2014
+ padding: 0 !important;
2015
+ border-radius: 0 !important;
2016
+ color: #444746 !important;
2017
+ font-family: inherit !important;
2018
+ font-size: 13.5px !important;
2019
+ line-height: 1.75 !important;
2020
+ white-space: pre-wrap;
2021
+ word-break: break-word;
2022
+ }
2023
+
2024
+ .elx-thinking__content-wrapper--error-state {
2025
+ border-left-color: #f6c7c4;
2026
+
2027
+ .elx-thinking__content pre {
2028
+ color: #9c1f19 !important;
2029
+ }
2030
+ }
2031
+ }
2032
+
2033
+ /* Gemini 风格:消息气泡(Bubble) */
2034
+ .elx-bubble:not(.elx-bubble--no-style) {
2035
+ .elx-bubble__content {
2036
+ padding: 12px 18px;
2037
+ font-size: 14.5px;
2038
+ line-height: 1.68;
2039
+ color: #1f1f1f;
2040
+ letter-spacing: -0.005em;
2041
+ }
2042
+
2043
+ &.elx-bubble--end .elx-bubble__content {
2044
+ background: #f0f4f9;
2045
+ border: none;
2046
+ border-radius: 20px 6px 20px 20px;
2047
+ color: #1f1f1f;
2048
+ }
2049
+
2050
+ &.elx-bubble--start .elx-bubble__content {
2051
+ background: #ffffff;
2052
+ border: 1px solid #e4eaf2;
2053
+ border-radius: 6px 20px 20px 20px;
2054
+ color: #1f1f1f;
2055
+ }
2056
+
2057
+ &.elx-bubble--start .elx-bubble__content--filled {
2058
+ background: #f8fafd;
2059
+ border: 1px solid #e4eaf2;
2060
+ }
2061
+
2062
+ &.elx-bubble--start .elx-bubble__content--outlined {
2063
+ background: #ffffff;
2064
+ border: 1px solid #e4eaf2;
2065
+ }
2066
+ }
2067
+
2068
+ /* Gemini / ChatGPT 风格:消息列表(BubbleList) */
2069
+ .elx-bubble-list.elx-bubble-list {
2070
+ width: 100%;
2071
+ min-width: 0;
2072
+ box-sizing: border-box;
2073
+
2074
+ .elx-bubble-list__list {
2075
+ width: 100%;
2076
+ box-sizing: border-box;
2077
+ gap: 20px;
2078
+ padding: 12px 16px 16px;
2079
+ scrollbar-width: thin;
2080
+
2081
+ &::-webkit-scrollbar {
2082
+ width: 5px;
2083
+ height: 5px;
2084
+ }
2085
+
2086
+ &::-webkit-scrollbar-track {
2087
+ background: transparent;
2088
+ }
2089
+
2090
+ &::-webkit-scrollbar-thumb {
2091
+ border-radius: 999px;
2092
+ background: rgba(15, 23, 42, 0.14);
2093
+ }
2094
+
2095
+ &:hover::-webkit-scrollbar-thumb {
2096
+ background: rgba(15, 23, 42, 0.24);
2097
+ }
2098
+ }
2099
+
2100
+ .elx-bubble-list__boundary-content,
2101
+ .elx-bubble-list__embedded-item {
2102
+ min-height: 30px;
2103
+ padding: 5px 14px;
2104
+ border-radius: 999px;
2105
+ border: 1px solid rgba(15, 23, 42, 0.06);
2106
+ background: #f8fafd;
2107
+ color: #64748b;
2108
+ font-size: 12.5px;
2109
+ }
2110
+
2111
+ .elx-bubble-list__back-to-bottom-default {
2112
+ width: 36px;
2113
+ height: 36px;
2114
+ border: 1px solid rgba(15, 23, 42, 0.08);
2115
+ background: rgba(255, 255, 255, 0.92);
2116
+ backdrop-filter: blur(12px);
2117
+ color: #334155;
2118
+ box-shadow:
2119
+ 0 4px 14px rgba(15, 23, 42, 0.08),
2120
+ 0 1px 3px rgba(15, 23, 42, 0.04);
2121
+
2122
+ &:hover {
2123
+ background: #ffffff;
2124
+ color: #1a73e8;
2125
+ border-color: rgba(26, 115, 232, 0.28);
2126
+ transform: translateY(-2px);
2127
+ box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
2128
+ }
2129
+ }
2130
+ }
2131
+
2132
+ /* Gemini / ChatGPT 风格:输入框(XSender) */
2133
+ .elx-x-sender.elx-x-sender {
2134
+ position: relative;
2135
+ border-radius: 26px;
2136
+ background: #f3f6fb;
2137
+ border: 1px solid rgba(15, 23, 42, 0.06);
2138
+ box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
2139
+ transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
2140
+
2141
+ &:after {
2142
+ display: none;
2143
+ content: none;
2144
+ border: none;
2145
+ }
2146
+
2147
+ &:hover:not(:focus-within) {
2148
+ background: #eef2f8;
2149
+ border-color: rgba(15, 23, 42, 0.1);
2150
+ }
2151
+
2152
+ &:focus-within {
2153
+ background: #ffffff;
2154
+ border-color: rgba(26, 115, 232, 0.36);
2155
+ box-shadow:
2156
+ 0 8px 28px -6px rgba(15, 23, 42, 0.09),
2157
+ 0 0 0 3px rgba(26, 115, 232, 0.08);
2158
+
2159
+ &:after {
2160
+ display: none;
2161
+ }
2162
+ }
2163
+
2164
+ .elx-x-sender__content {
2165
+ padding: 10px 14px 10px 18px;
2166
+ gap: 10px;
2167
+ align-items: flex-end;
2168
+
2169
+ &.elx-x-sender__content--variant-updown {
2170
+ padding: 14px 18px 10px;
2171
+
2172
+ .elx-x-sender__updown-action-list {
2173
+ align-items: center;
2174
+ padding-top: 6px;
2175
+ }
2176
+
2177
+ .elx-x-sender__action-list {
2178
+ height: 36px;
2179
+ }
2180
+ }
2181
+ }
2182
+
2183
+ .elx-x-sender__chat-room {
2184
+ min-height: 36px;
2185
+ }
2186
+
2187
+ .elx-x-sender__chat .chat-rich-text {
2188
+ font-size: 14.5px;
2189
+ line-height: 1.65;
2190
+ color: #1e293b;
2191
+ min-height: 36px;
2192
+ }
2193
+
2194
+ .elx-x-sender__chat .chat-placeholder-wrap {
2195
+ font-weight: 400;
2196
+ color: #8b95a5;
2197
+ }
2198
+
2199
+ .elx-x-sender__footer {
2200
+ display: flex;
2201
+ align-items: center;
2202
+ gap: 8px;
2203
+ min-height: 46px;
2204
+ padding: 2px 14px 12px 16px;
2205
+ border-top: none;
2206
+ box-sizing: border-box;
2207
+ }
2208
+
2209
+ &:has(.elx-x-sender__footer) {
2210
+ .elx-x-sender__content--variant-updown {
2211
+ padding-bottom: 6px;
2212
+
2213
+ .elx-x-sender__action-list {
2214
+ position: absolute;
2215
+ right: 14px;
2216
+ bottom: 11px;
2217
+ height: 34px;
2218
+ z-index: 2;
2219
+ }
2220
+ }
2221
+
2222
+ &:not(:has(.elx-x-sender__prefix)) {
2223
+ .elx-x-sender__content--variant-updown .elx-x-sender__updown-action-list {
2224
+ min-height: 0;
2225
+ height: 0;
2226
+ margin: 0;
2227
+ padding: 0;
2228
+ }
2229
+ }
2230
+
2231
+ .elx-x-sender__footer {
2232
+ padding-right: 58px;
2233
+ }
2234
+ }
2235
+
2236
+ .yc-chat-select.is-chip {
2237
+ height: 32px;
2238
+ padding: 0 11px;
2239
+ border-color: transparent;
2240
+ background: rgba(15, 23, 42, 0.045);
2241
+ color: #334155;
2242
+
2243
+ &:hover:not(:disabled) {
2244
+ background: rgba(15, 23, 42, 0.08);
2245
+ border-color: transparent;
2246
+ }
2247
+
2248
+ &.is-open {
2249
+ background: #ffffff;
2250
+ border-color: rgba(26, 115, 232, 0.35);
2251
+ box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
2252
+ }
2253
+ }
2254
+
2255
+ .elx-x-sender__action-list .el-button.is-circle {
2256
+ width: 34px;
2257
+ height: 34px;
2258
+ border: none;
2259
+ background: #1a73e8;
2260
+ color: #ffffff;
2261
+ box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
2262
+ transition: background-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
2263
+
2264
+ &:hover:not(.is-disabled) {
2265
+ background: #1557b0;
2266
+ transform: translateY(-1px) scale(1.03);
2267
+ box-shadow: 0 4px 12px rgba(26, 115, 232, 0.32);
2268
+ }
2269
+
2270
+ &:active:not(.is-disabled) {
2271
+ transform: scale(0.96);
2272
+ }
2273
+
2274
+ &.is-disabled {
2275
+ background: rgba(15, 23, 42, 0.08);
2276
+ color: #94a3b8;
2277
+ box-shadow: none;
2278
+ }
2279
+ }
2280
+ }
2281
+
2282
+ .yc-chat-studio.is-mobile:not(.is-simulator) {
2283
+ height: 100%;
2284
+ min-height: 0;
2285
+ border: none;
2286
+ border-radius: 0;
2287
+ background: #f8fafc;
2288
+
2289
+ .yc-chat-studio__mobile-native {
2290
+ position: relative;
2291
+ display: flex;
2292
+ flex-direction: column;
2293
+ flex: 1;
2294
+ min-height: 0;
2295
+ overflow: hidden;
2296
+ }
2297
+
2298
+ .yc-chat-studio__mobile-header {
2299
+ display: flex;
2300
+ align-items: center;
2301
+ justify-content: space-between;
2302
+ gap: 8px;
2303
+ height: 48px;
2304
+ padding: 0 10px;
2305
+ background: #ffffff;
2306
+ border-bottom: 1px solid rgba(15, 23, 42, 0.06);
2307
+ flex-shrink: 0;
2308
+ }
2309
+
2310
+ .yc-chat-studio__icon-btn {
2311
+ position: relative;
2312
+ border-color: transparent;
2313
+ background: transparent;
2314
+
2315
+ &:hover {
2316
+ background: #f1f5f9;
2317
+ }
2318
+ }
2319
+
2320
+ .yc-chat-studio__mobile-badge {
2321
+ position: absolute;
2322
+ top: 2px;
2323
+ right: 2px;
2324
+ min-width: 14px;
2325
+ height: 14px;
2326
+ padding: 0 3px;
2327
+ border-radius: 999px;
2328
+ background: #1a73e8;
2329
+ color: #ffffff;
2330
+ font-size: 9.5px;
2331
+ font-weight: 600;
2332
+ line-height: 14px;
2333
+ text-align: center;
2334
+ }
2335
+
2336
+ .yc-chat-studio__mobile-title-wrap {
2337
+ display: flex;
2338
+ flex-direction: column;
2339
+ align-items: center;
2340
+ min-width: 0;
2341
+ flex: 1;
2342
+ }
2343
+
2344
+ .yc-chat-studio__mobile-title {
2345
+ font-size: 14px;
2346
+ font-weight: 600;
2347
+ color: #0f172a;
2348
+ overflow: hidden;
2349
+ text-overflow: ellipsis;
2350
+ white-space: nowrap;
2351
+ max-width: 100%;
2352
+ }
2353
+
2354
+ .yc-chat-studio__mobile-sub {
2355
+ display: inline-flex;
2356
+ align-items: center;
2357
+ gap: 4px;
2358
+ font-size: 11px;
2359
+ color: #64748b;
2360
+ }
2361
+
2362
+ .yc-chat-studio__mobile-dot {
2363
+ width: 6px;
2364
+ height: 6px;
2365
+ border-radius: 50%;
2366
+ background: #94a3b8;
2367
+
2368
+ &.is-connected {
2369
+ background: #22c55e;
2370
+ }
2371
+ }
2372
+
2373
+ .yc-chat-studio__mobile-toolbar {
2374
+ display: flex;
2375
+ align-items: center;
2376
+ gap: 6px;
2377
+ padding: 6px 10px;
2378
+ background: #ffffff;
2379
+ border-bottom: 1px solid rgba(15, 23, 42, 0.05);
2380
+ overflow-x: auto;
2381
+ flex-shrink: 0;
2382
+ }
2383
+
2384
+ .yc-chat-studio__mobile-stream {
2385
+ flex: 1;
2386
+ min-height: 0;
2387
+ overflow-y: auto;
2388
+ padding: 14px 12px;
2389
+ display: flex;
2390
+ flex-direction: column;
2391
+ gap: 12px;
2392
+ }
2393
+
2394
+ .yc-chat-studio__mobile-composer {
2395
+ padding: 8px 10px 10px;
2396
+ background: #ffffff;
2397
+ border-top: 1px solid rgba(15, 23, 42, 0.06);
2398
+ flex-shrink: 0;
2399
+ }
2400
+
2401
+ .yc-chat-studio__mobile-drawer-mask {
2402
+ position: absolute;
2403
+ inset: 0;
2404
+ z-index: 20;
2405
+ background: rgba(15, 23, 42, 0.36);
2406
+ display: flex;
2407
+ }
2408
+
2409
+ .yc-chat-studio__mobile-drawer {
2410
+ width: 78%;
2411
+ max-width: 280px;
2412
+ height: 100%;
2413
+ background: #ffffff;
2414
+ display: flex;
2415
+ flex-direction: column;
2416
+ box-shadow: 4px 0 24px rgba(15, 23, 42, 0.14);
2417
+ }
2418
+
2419
+ .yc-chat-studio__mobile-drawer-top {
2420
+ display: flex;
2421
+ align-items: center;
2422
+ justify-content: space-between;
2423
+ height: 46px;
2424
+ padding: 0 12px;
2425
+ border-bottom: 1px solid rgba(15, 23, 42, 0.06);
2426
+ font-size: 13.5px;
2427
+ font-weight: 600;
2428
+ color: #0f172a;
2429
+ flex-shrink: 0;
2430
+ }
2431
+
2432
+ .yc-chat-studio__mobile-drawer-body {
2433
+ flex: 1;
2434
+ min-height: 0;
2435
+ overflow-y: auto;
2436
+ }
2437
+ }
2438
+
1675
2439
  @media (max-width: 768px) {
1676
2440
  .yc-chat-studio {
1677
2441
  height: calc(100dvh - 84px);