index.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /* ==================== Tailwind CSS 配置 ==================== */
  2. @layer tailwind-base, semi, tailwind-components, tailwind-utils;
  3. @layer tailwind-base {
  4. @tailwind base;
  5. }
  6. @layer tailwind-components {
  7. @tailwind components;
  8. }
  9. @layer tailwind-utils {
  10. @tailwind utilities;
  11. }
  12. /* ==================== 全局基础样式 ==================== */
  13. body {
  14. font-family: Lato, 'Helvetica Neue', Arial, Helvetica, 'Microsoft YaHei', sans-serif;
  15. color: var(--semi-color-text-0);
  16. background-color: var(--semi-color-bg-0);
  17. }
  18. code {
  19. font-family:
  20. source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  21. }
  22. /* ==================== 布局相关样式 ==================== */
  23. .semi-layout::-webkit-scrollbar,
  24. .semi-layout-content::-webkit-scrollbar,
  25. .semi-sider::-webkit-scrollbar {
  26. display: none;
  27. width: 0;
  28. height: 0;
  29. }
  30. .semi-layout,
  31. .semi-layout-content,
  32. .semi-sider {
  33. -ms-overflow-style: none;
  34. scrollbar-width: none;
  35. }
  36. /* ==================== 导航和侧边栏样式 ==================== */
  37. /* 导航项样式 */
  38. .semi-navigation-sub-title,
  39. .semi-chat-inputBox-sendButton,
  40. .semi-page-item,
  41. .semi-navigation-item,
  42. .semi-tag-closable,
  43. .semi-input-wrapper,
  44. .semi-tabs-tab-button,
  45. .semi-select,
  46. .semi-button,
  47. .semi-datepicker-range-input {
  48. border-radius: 9999px !important;
  49. }
  50. .semi-navigation-item {
  51. margin-bottom: 4px !important;
  52. }
  53. .semi-navigation-item-icon {
  54. justify-items: center;
  55. align-items: center;
  56. }
  57. .semi-navigation-item-icon-info {
  58. margin-right: 0;
  59. }
  60. .semi-navigation-sub-title {
  61. height: 100% !important;
  62. }
  63. .semi-navigation-item-collapsed {
  64. height: 44px !important;
  65. }
  66. #root>section>header>section>div>div>div>div.semi-navigation-header-list-outer>div.semi-navigation-list-wrapper>ul>div>a>li>span {
  67. font-weight: 600 !important;
  68. }
  69. /* 自定义侧边栏样式 */
  70. .sidebar-container {
  71. height: 100%;
  72. display: flex;
  73. flex-direction: column;
  74. transition: width 0.3s ease;
  75. }
  76. .sidebar-nav {
  77. flex: 1;
  78. width: 100%;
  79. background: var(--semi-color-bg-0);
  80. height: 100%;
  81. overflow: hidden;
  82. border-right: none;
  83. overflow-y: auto;
  84. scrollbar-width: none;
  85. -ms-overflow-style: none;
  86. }
  87. .sidebar-nav::-webkit-scrollbar {
  88. display: none;
  89. }
  90. /* 侧边栏导航项样式 */
  91. .sidebar-nav-item {
  92. border-radius: 6px;
  93. margin: 3px 8px;
  94. transition: all 0.15s ease;
  95. padding: 8px 12px;
  96. }
  97. .sidebar-nav-item:hover {
  98. background-color: rgba(var(--semi-blue-0), 0.08);
  99. color: var(--semi-color-primary);
  100. }
  101. .sidebar-nav-item-selected {
  102. background-color: rgba(var(--semi-blue-0), 0.12);
  103. color: var(--semi-color-primary);
  104. font-weight: 500;
  105. }
  106. /* 图标容器样式 */
  107. .sidebar-icon-container {
  108. width: 22px;
  109. height: 22px;
  110. display: flex;
  111. align-items: center;
  112. justify-content: center;
  113. margin-right: 10px;
  114. transition: all 0.2s ease;
  115. }
  116. .sidebar-sub-icon-container {
  117. width: 18px;
  118. height: 18px;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. margin-right: 10px;
  123. margin-left: 1px;
  124. transition: all 0.2s ease;
  125. }
  126. /* 分割线样式 */
  127. .sidebar-divider {
  128. margin: 4px 8px;
  129. opacity: 0.15;
  130. }
  131. /* 分组标签样式 */
  132. .sidebar-group-label {
  133. padding: 4px 15px 8px;
  134. color: var(--semi-color-text-2);
  135. font-size: 12px;
  136. text-transform: uppercase;
  137. letter-spacing: 0.5px;
  138. opacity: 0.8;
  139. }
  140. /* 底部折叠按钮 */
  141. .sidebar-collapse-button {
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. padding: 12px;
  146. cursor: pointer;
  147. background-color: var(--semi-color-bg-0);
  148. position: sticky;
  149. bottom: 0;
  150. z-index: 10;
  151. box-shadow: 0 -10px 10px -5px var(--semi-color-bg-0);
  152. backdrop-filter: blur(4px);
  153. border-top: 1px solid rgba(var(--semi-grey-0), 0.08);
  154. }
  155. .sidebar-collapse-button-inner {
  156. width: 28px;
  157. height: 28px;
  158. border-radius: 9999px;
  159. display: flex;
  160. align-items: center;
  161. justify-content: center;
  162. background-color: var(--semi-color-fill-0);
  163. transition: all 0.2s ease;
  164. }
  165. .sidebar-collapse-icon-container {
  166. display: inline-block;
  167. transition: transform 0.3s ease;
  168. }
  169. /* 侧边栏区域容器 */
  170. .sidebar-section {
  171. padding-top: 12px;
  172. }
  173. /* ==================== 聊天界面样式 ==================== */
  174. .semi-chat {
  175. padding-top: 0 !important;
  176. padding-bottom: 0 !important;
  177. height: 100%;
  178. max-width: 100% !important;
  179. width: 100% !important;
  180. overflow: hidden !important;
  181. }
  182. .semi-chat-chatBox {
  183. max-width: 100% !important;
  184. overflow: hidden !important;
  185. }
  186. .semi-chat-chatBox-wrap {
  187. max-width: 100% !important;
  188. overflow: hidden !important;
  189. }
  190. .semi-chat-chatBox-content {
  191. min-width: auto;
  192. word-break: break-word;
  193. max-width: 100% !important;
  194. overflow-wrap: break-word !important;
  195. }
  196. .semi-chat-content {
  197. max-width: 100% !important;
  198. overflow: hidden !important;
  199. }
  200. .semi-chat-list {
  201. max-width: 100% !important;
  202. overflow-x: hidden !important;
  203. }
  204. .semi-chat-container {
  205. overflow-x: hidden !important;
  206. }
  207. .semi-chat-chatBox-action {
  208. column-gap: 0 !important;
  209. }
  210. .semi-chat-inputBox-clearButton.semi-button .semi-icon {
  211. font-size: 20px !important;
  212. }
  213. /* 隐藏所有聊天相关区域的滚动条 */
  214. .semi-chat::-webkit-scrollbar,
  215. .semi-chat-chatBox::-webkit-scrollbar,
  216. .semi-chat-chatBox-wrap::-webkit-scrollbar,
  217. .semi-chat-chatBox-content::-webkit-scrollbar,
  218. .semi-chat-content::-webkit-scrollbar,
  219. .semi-chat-list::-webkit-scrollbar,
  220. .semi-chat-container::-webkit-scrollbar {
  221. display: none;
  222. }
  223. .semi-chat,
  224. .semi-chat-chatBox,
  225. .semi-chat-chatBox-wrap,
  226. .semi-chat-chatBox-content,
  227. .semi-chat-content,
  228. .semi-chat-list,
  229. .semi-chat-container {
  230. -ms-overflow-style: none;
  231. scrollbar-width: none;
  232. }
  233. /* ==================== 组件特定样式 ==================== */
  234. /* Tabs组件样式 */
  235. .semi-tabs-content {
  236. padding: 0 !important;
  237. height: calc(100% - 40px) !important;
  238. flex: 1 !important;
  239. }
  240. .semi-tabs-content .semi-tabs-pane {
  241. height: 100% !important;
  242. overflow: hidden !important;
  243. }
  244. .semi-tabs-content .semi-tabs-pane>div {
  245. height: 100% !important;
  246. }
  247. /* 表格样式 */
  248. .tableShow {
  249. display: revert;
  250. }
  251. .tableHiddle {
  252. display: none !important;
  253. }
  254. /* 页脚样式 */
  255. .custom-footer {
  256. font-size: 1.1em;
  257. }
  258. /* 卡片内容容器通用样式 */
  259. .card-content-container {
  260. position: relative;
  261. }
  262. .card-content-fade-indicator {
  263. position: absolute;
  264. bottom: 0;
  265. left: 0;
  266. right: 0;
  267. height: 30px;
  268. background: linear-gradient(transparent, var(--semi-color-bg-1));
  269. pointer-events: none;
  270. z-index: 1;
  271. opacity: 0;
  272. transition: opacity 0.3s ease;
  273. }
  274. /* ==================== 调试面板特定样式 ==================== */
  275. .debug-panel .semi-tabs {
  276. height: 100% !important;
  277. display: flex !important;
  278. flex-direction: column !important;
  279. }
  280. .debug-panel .semi-tabs-bar {
  281. flex-shrink: 0 !important;
  282. }
  283. .debug-panel .semi-tabs-content {
  284. flex: 1 !important;
  285. overflow: hidden !important;
  286. }
  287. /* ==================== 滚动条样式统一管理 ==================== */
  288. /* 表格滚动条样式 */
  289. .semi-table-body::-webkit-scrollbar {
  290. width: 6px;
  291. height: 6px;
  292. }
  293. .semi-table-body::-webkit-scrollbar-thumb {
  294. background: rgba(var(--semi-grey-2), 0.3);
  295. border-radius: 2px;
  296. }
  297. .semi-table-body::-webkit-scrollbar-thumb:hover {
  298. background: rgba(var(--semi-grey-2), 0.5);
  299. }
  300. .semi-table-body::-webkit-scrollbar-track {
  301. background: transparent;
  302. }
  303. /* 侧边抽屉滚动条样式 */
  304. .semi-sidesheet-body::-webkit-scrollbar {
  305. width: 6px;
  306. height: 6px;
  307. }
  308. .semi-sidesheet-body::-webkit-scrollbar-thumb {
  309. background: rgba(var(--semi-grey-2), 0.3);
  310. border-radius: 2px;
  311. }
  312. .semi-sidesheet-body::-webkit-scrollbar-thumb:hover {
  313. background: rgba(var(--semi-grey-2), 0.5);
  314. }
  315. .semi-sidesheet-body::-webkit-scrollbar-track {
  316. background: transparent;
  317. }
  318. /* 隐藏卡片内容区域的滚动条 */
  319. .model-test-scroll,
  320. .card-content-scroll,
  321. .model-settings-scroll,
  322. .thinking-content-scroll,
  323. .custom-request-textarea .semi-input,
  324. .custom-request-textarea textarea,
  325. .notice-content-scroll {
  326. -ms-overflow-style: none;
  327. scrollbar-width: none;
  328. }
  329. .model-test-scroll::-webkit-scrollbar,
  330. .card-content-scroll::-webkit-scrollbar,
  331. .model-settings-scroll::-webkit-scrollbar,
  332. .thinking-content-scroll::-webkit-scrollbar,
  333. .custom-request-textarea .semi-input::-webkit-scrollbar,
  334. .custom-request-textarea textarea::-webkit-scrollbar,
  335. .notice-content-scroll::-webkit-scrollbar {
  336. display: none;
  337. }
  338. /* 图片列表滚动条样式 */
  339. .image-list-scroll::-webkit-scrollbar {
  340. width: 6px;
  341. height: 6px;
  342. }
  343. .image-list-scroll::-webkit-scrollbar-thumb {
  344. background: var(--semi-color-tertiary-light-default);
  345. border-radius: 3px;
  346. }
  347. .image-list-scroll::-webkit-scrollbar-thumb:hover {
  348. background: var(--semi-color-tertiary);
  349. }
  350. .image-list-scroll::-webkit-scrollbar-track {
  351. background: transparent;
  352. }
  353. /* ==================== 响应式/移动端样式 ==================== */
  354. @media only screen and (max-width: 767px) {
  355. /* 移动端表格样式调整 */
  356. .semi-table-tbody,
  357. .semi-table-row,
  358. .semi-table-row-cell {
  359. display: block !important;
  360. width: auto !important;
  361. padding: 2px !important;
  362. }
  363. .semi-table-row-cell {
  364. border-bottom: 0 !important;
  365. }
  366. .semi-table-tbody>.semi-table-row {
  367. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  368. }
  369. }
  370. /* ==================== 同步倍率 - 渠道选择器 ==================== */
  371. .components-transfer-source-item,
  372. .components-transfer-selected-item {
  373. display: flex;
  374. align-items: center;
  375. padding: 8px;
  376. }
  377. .semi-transfer-left-list,
  378. .semi-transfer-right-list {
  379. -ms-overflow-style: none;
  380. scrollbar-width: none;
  381. }
  382. .semi-transfer-left-list::-webkit-scrollbar,
  383. .semi-transfer-right-list::-webkit-scrollbar {
  384. display: none;
  385. }
  386. .components-transfer-source-item .semi-checkbox,
  387. .components-transfer-selected-item .semi-checkbox {
  388. display: flex;
  389. align-items: center;
  390. width: 100%;
  391. }
  392. .components-transfer-source-item .semi-avatar,
  393. .components-transfer-selected-item .semi-avatar {
  394. margin-right: 12px;
  395. flex-shrink: 0;
  396. }
  397. .components-transfer-source-item .info,
  398. .components-transfer-selected-item .info {
  399. flex: 1;
  400. overflow: hidden;
  401. display: flex;
  402. flex-direction: column;
  403. justify-content: center;
  404. }
  405. .components-transfer-source-item .name,
  406. .components-transfer-selected-item .name {
  407. font-weight: 500;
  408. white-space: nowrap;
  409. overflow: hidden;
  410. text-overflow: ellipsis;
  411. }
  412. .components-transfer-source-item .email,
  413. .components-transfer-selected-item .email {
  414. font-size: 12px;
  415. color: var(--semi-color-text-2);
  416. display: flex;
  417. align-items: center;
  418. }
  419. .components-transfer-selected-item .semi-icon-close {
  420. margin-left: 8px;
  421. cursor: pointer;
  422. color: var(--semi-color-text-2);
  423. }
  424. .components-transfer-selected-item .semi-icon-close:hover {
  425. color: var(--semi-color-text-0);
  426. }
  427. /* ==================== 未读通知闪光效果 ==================== */
  428. @keyframes sweep-shine {
  429. 0% {
  430. background-position: 200% 0;
  431. }
  432. 100% {
  433. background-position: -200% 0;
  434. }
  435. }
  436. .shine-text {
  437. background: linear-gradient(90deg, currentColor 0%, currentColor 40%, rgba(255, 255, 255, 0.9) 50%, currentColor 60%, currentColor 100%);
  438. background-size: 200% 100%;
  439. -webkit-background-clip: text;
  440. background-clip: text;
  441. -webkit-text-fill-color: transparent;
  442. animation: sweep-shine 4s linear infinite;
  443. }
  444. .dark .shine-text {
  445. background: linear-gradient(90deg, currentColor 0%, currentColor 40%, #facc15 50%, currentColor 60%, currentColor 100%);
  446. background-size: 200% 100%;
  447. -webkit-background-clip: text;
  448. background-clip: text;
  449. -webkit-text-fill-color: transparent;
  450. }