index.css 12 KB

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