index.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  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. :root {
  14. --sidebar-width: 180px;
  15. --sidebar-width-collapsed: 60px;
  16. --sidebar-current-width: var(--sidebar-width);
  17. }
  18. body.sidebar-collapsed {
  19. --sidebar-current-width: var(--sidebar-width-collapsed);
  20. }
  21. body {
  22. font-family: Lato, 'Helvetica Neue', Arial, Helvetica, 'Microsoft YaHei', sans-serif;
  23. color: var(--semi-color-text-0);
  24. background-color: var(--semi-color-bg-0);
  25. }
  26. code {
  27. font-family:
  28. source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
  29. }
  30. /* ==================== 布局相关样式 ==================== */
  31. .semi-layout::-webkit-scrollbar,
  32. .semi-layout-content::-webkit-scrollbar,
  33. .semi-sider::-webkit-scrollbar {
  34. display: none;
  35. width: 0;
  36. height: 0;
  37. }
  38. .semi-layout,
  39. .semi-layout-content,
  40. .semi-sider {
  41. -ms-overflow-style: none;
  42. scrollbar-width: none;
  43. }
  44. /* ==================== 导航和侧边栏样式 ==================== */
  45. /* 导航项样式 */
  46. .semi-tagInput,
  47. .semi-input-textarea-wrapper,
  48. .semi-navigation-sub-title,
  49. .semi-chat-inputBox-sendButton,
  50. .semi-page-item,
  51. .semi-navigation-item,
  52. .semi-tag-closable,
  53. .semi-input-wrapper,
  54. .semi-tabs-tab-button,
  55. .semi-select,
  56. .semi-button,
  57. .semi-datepicker-range-input {
  58. border-radius: 10px !important;
  59. }
  60. .semi-navigation-item {
  61. margin-bottom: 4px !important;
  62. padding: 4px 12px !important;
  63. }
  64. .semi-navigation-sub-title {
  65. padding: 0 !important;
  66. }
  67. .semi-navigation-item-icon {
  68. justify-items: center;
  69. align-items: center;
  70. }
  71. .semi-navigation-item-icon-info {
  72. margin-right: 0;
  73. }
  74. .semi-navigation-item,
  75. .semi-navigation-sub-title {
  76. height: 100% !important;
  77. }
  78. .semi-navigation-item-collapsed {
  79. height: 44px !important;
  80. }
  81. #root>section>header>section>div>div>div>div.semi-navigation-header-list-outer>div.semi-navigation-list-wrapper>ul>div>a>li>span {
  82. font-weight: 600 !important;
  83. }
  84. /* 自定义侧边栏样式 */
  85. .sidebar-container {
  86. height: 100%;
  87. display: flex;
  88. flex-direction: column;
  89. transition: width 0.3s ease;
  90. }
  91. .sidebar-nav {
  92. flex: 1;
  93. width: 100%;
  94. background: var(--semi-color-bg-0);
  95. height: 100%;
  96. overflow: hidden;
  97. border-right: none;
  98. overflow-y: auto;
  99. scrollbar-width: none;
  100. -ms-overflow-style: none;
  101. }
  102. .sidebar-nav::-webkit-scrollbar {
  103. display: none;
  104. }
  105. /* 侧边栏导航项样式 */
  106. .sidebar-nav-item {
  107. border-radius: 6px;
  108. margin: 3px 8px;
  109. transition: all 0.15s ease;
  110. padding: 8px 12px;
  111. }
  112. .sidebar-nav-item:hover {
  113. background-color: rgba(var(--semi-blue-0), 0.08);
  114. color: var(--semi-color-primary);
  115. }
  116. .sidebar-nav-item-selected {
  117. background-color: rgba(var(--semi-blue-0), 0.12);
  118. color: var(--semi-color-primary);
  119. font-weight: 500;
  120. }
  121. /* 图标容器样式 */
  122. .sidebar-icon-container {
  123. width: 22px;
  124. height: 22px;
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. margin-right: 10px;
  129. transition: all 0.2s ease;
  130. }
  131. .sidebar-sub-icon-container {
  132. width: 18px;
  133. height: 18px;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. margin-right: 10px;
  138. margin-left: 1px;
  139. transition: all 0.2s ease;
  140. }
  141. /* 分割线样式 */
  142. .sidebar-divider {
  143. margin: 4px 8px;
  144. opacity: 0.15;
  145. }
  146. /* 分组标签样式 */
  147. .sidebar-group-label {
  148. padding: 4px 15px 8px;
  149. color: var(--semi-color-text-2);
  150. font-size: 12px;
  151. text-transform: uppercase;
  152. letter-spacing: 0.5px;
  153. opacity: 0.8;
  154. }
  155. /* 底部折叠按钮 */
  156. .sidebar-collapse-button {
  157. display: flex;
  158. justify-content: center;
  159. align-items: center;
  160. padding: 12px;
  161. cursor: pointer;
  162. background-color: var(--semi-color-bg-0);
  163. position: sticky;
  164. bottom: 0;
  165. z-index: 10;
  166. box-shadow: 0 -10px 10px -5px var(--semi-color-bg-0);
  167. backdrop-filter: blur(4px);
  168. border-top: 1px solid rgba(var(--semi-grey-0), 0.08);
  169. }
  170. .sidebar-collapse-button-inner {
  171. width: 28px;
  172. height: 28px;
  173. border-radius: 9999px;
  174. display: flex;
  175. align-items: center;
  176. justify-content: center;
  177. background-color: var(--semi-color-fill-0);
  178. transition: all 0.2s ease;
  179. }
  180. .sidebar-collapse-icon-container {
  181. display: inline-block;
  182. transition: transform 0.3s ease;
  183. }
  184. /* 侧边栏区域容器 */
  185. .sidebar-section {
  186. padding-top: 12px;
  187. }
  188. /* ==================== 聊天界面样式 ==================== */
  189. .semi-chat {
  190. padding-top: 0 !important;
  191. padding-bottom: 0 !important;
  192. height: 100%;
  193. max-width: 100% !important;
  194. width: 100% !important;
  195. overflow: hidden !important;
  196. }
  197. .semi-chat-chatBox {
  198. max-width: 100% !important;
  199. overflow: hidden !important;
  200. }
  201. .semi-chat-chatBox-wrap {
  202. max-width: 100% !important;
  203. overflow: hidden !important;
  204. }
  205. .semi-chat-chatBox-content {
  206. min-width: auto;
  207. word-break: break-word;
  208. max-width: 100% !important;
  209. overflow-wrap: break-word !important;
  210. }
  211. .semi-chat-content {
  212. max-width: 100% !important;
  213. overflow: hidden !important;
  214. }
  215. .semi-chat-list {
  216. max-width: 100% !important;
  217. overflow-x: hidden !important;
  218. }
  219. .semi-chat-container {
  220. overflow-x: hidden !important;
  221. }
  222. .semi-chat-chatBox-action {
  223. column-gap: 0 !important;
  224. }
  225. .semi-chat-inputBox-clearButton.semi-button .semi-icon {
  226. font-size: 20px !important;
  227. }
  228. /* 隐藏所有聊天相关区域的滚动条 */
  229. .semi-chat::-webkit-scrollbar,
  230. .semi-chat-chatBox::-webkit-scrollbar,
  231. .semi-chat-chatBox-wrap::-webkit-scrollbar,
  232. .semi-chat-chatBox-content::-webkit-scrollbar,
  233. .semi-chat-content::-webkit-scrollbar,
  234. .semi-chat-list::-webkit-scrollbar,
  235. .semi-chat-container::-webkit-scrollbar {
  236. display: none;
  237. }
  238. .semi-chat,
  239. .semi-chat-chatBox,
  240. .semi-chat-chatBox-wrap,
  241. .semi-chat-chatBox-content,
  242. .semi-chat-content,
  243. .semi-chat-list,
  244. .semi-chat-container {
  245. -ms-overflow-style: none;
  246. scrollbar-width: none;
  247. }
  248. /* ==================== 组件特定样式 ==================== */
  249. /* Tabs组件样式 */
  250. .semi-tabs-content {
  251. padding: 0 !important;
  252. height: calc(100% - 40px) !important;
  253. flex: 1 !important;
  254. }
  255. .semi-tabs-content .semi-tabs-pane {
  256. height: 100% !important;
  257. overflow: hidden !important;
  258. }
  259. .semi-tabs-content .semi-tabs-pane>div {
  260. height: 100% !important;
  261. }
  262. /* 表格样式 */
  263. .tableShow {
  264. display: revert;
  265. }
  266. .tableHiddle {
  267. display: none !important;
  268. }
  269. /* 页脚样式 */
  270. .custom-footer {
  271. font-size: 1.1em;
  272. }
  273. /* 卡片内容容器通用样式 */
  274. .card-content-container {
  275. position: relative;
  276. }
  277. .card-content-fade-indicator {
  278. position: absolute;
  279. bottom: 0;
  280. left: 0;
  281. right: 0;
  282. height: 30px;
  283. background: linear-gradient(transparent, var(--semi-color-bg-1));
  284. pointer-events: none;
  285. z-index: 1;
  286. opacity: 0;
  287. transition: opacity 0.3s ease;
  288. }
  289. /* ==================== 调试面板特定样式 ==================== */
  290. .debug-panel .semi-tabs {
  291. height: 100% !important;
  292. display: flex !important;
  293. flex-direction: column !important;
  294. }
  295. .debug-panel .semi-tabs-bar {
  296. flex-shrink: 0 !important;
  297. }
  298. .debug-panel .semi-tabs-content {
  299. flex: 1 !important;
  300. overflow: hidden !important;
  301. }
  302. /* ==================== 滚动条样式统一管理 ==================== */
  303. /* 表格滚动条样式 */
  304. .semi-table-body::-webkit-scrollbar {
  305. width: 6px;
  306. height: 6px;
  307. }
  308. .semi-table-body::-webkit-scrollbar-thumb {
  309. background: rgba(var(--semi-grey-2), 0.3);
  310. border-radius: 2px;
  311. }
  312. .semi-table-body::-webkit-scrollbar-thumb:hover {
  313. background: rgba(var(--semi-grey-2), 0.5);
  314. }
  315. .semi-table-body::-webkit-scrollbar-track {
  316. background: transparent;
  317. }
  318. /* 侧边抽屉滚动条样式 */
  319. .semi-sidesheet-body::-webkit-scrollbar {
  320. width: 6px;
  321. height: 6px;
  322. }
  323. .semi-sidesheet-body::-webkit-scrollbar-thumb {
  324. background: rgba(var(--semi-grey-2), 0.3);
  325. border-radius: 2px;
  326. }
  327. .semi-sidesheet-body::-webkit-scrollbar-thumb:hover {
  328. background: rgba(var(--semi-grey-2), 0.5);
  329. }
  330. .semi-sidesheet-body::-webkit-scrollbar-track {
  331. background: transparent;
  332. }
  333. /* 隐藏内容区域滚动条 */
  334. .pricing-scroll-hide,
  335. .model-test-scroll,
  336. .card-content-scroll,
  337. .model-settings-scroll,
  338. .thinking-content-scroll,
  339. .custom-request-textarea .semi-input,
  340. .custom-request-textarea textarea,
  341. .notice-content-scroll {
  342. -ms-overflow-style: none;
  343. scrollbar-width: none;
  344. }
  345. .pricing-scroll-hide::-webkit-scrollbar,
  346. .model-test-scroll::-webkit-scrollbar,
  347. .card-content-scroll::-webkit-scrollbar,
  348. .model-settings-scroll::-webkit-scrollbar,
  349. .thinking-content-scroll::-webkit-scrollbar,
  350. .custom-request-textarea .semi-input::-webkit-scrollbar,
  351. .custom-request-textarea textarea::-webkit-scrollbar,
  352. .notice-content-scroll::-webkit-scrollbar {
  353. display: none;
  354. }
  355. /* 图片列表滚动条样式 */
  356. .image-list-scroll::-webkit-scrollbar {
  357. width: 6px;
  358. height: 6px;
  359. }
  360. .image-list-scroll::-webkit-scrollbar-thumb {
  361. background: var(--semi-color-tertiary-light-default);
  362. border-radius: 3px;
  363. }
  364. .image-list-scroll::-webkit-scrollbar-thumb:hover {
  365. background: var(--semi-color-tertiary);
  366. }
  367. .image-list-scroll::-webkit-scrollbar-track {
  368. background: transparent;
  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. }
  451. /* ==================== ScrollList 定制样式 ==================== */
  452. .semi-scrolllist,
  453. .semi-scrolllist * {
  454. -ms-overflow-style: none;
  455. /* IE, Edge */
  456. scrollbar-width: none;
  457. /* Firefox */
  458. background: transparent !important;
  459. }
  460. .semi-scrolllist::-webkit-scrollbar,
  461. .semi-scrolllist *::-webkit-scrollbar {
  462. width: 0 !important;
  463. height: 0 !important;
  464. display: none !important;
  465. }
  466. .semi-scrolllist-body {
  467. padding: 1px !important;
  468. }
  469. .semi-scrolllist-list-outer {
  470. padding-right: 0 !important;
  471. }
  472. /* ==================== Banner 背景模糊球 ==================== */
  473. .blur-ball {
  474. position: absolute;
  475. width: 360px;
  476. height: 360px;
  477. border-radius: 50%;
  478. filter: blur(120px);
  479. pointer-events: none;
  480. z-index: -1;
  481. }
  482. .blur-ball-indigo {
  483. background: #6366f1;
  484. /* indigo-500 */
  485. top: 40px;
  486. left: 50%;
  487. transform: translateX(-50%);
  488. opacity: 0.5;
  489. }
  490. .blur-ball-teal {
  491. background: #14b8a6;
  492. /* teal-400 */
  493. top: 200px;
  494. left: 30%;
  495. opacity: 0.4;
  496. }
  497. /* 浅色主题下让模糊球更柔和 */
  498. html:not(.dark) .blur-ball-indigo {
  499. opacity: 0.25;
  500. }
  501. html:not(.dark) .blur-ball-teal {
  502. opacity: 0.2;
  503. }
  504. /* ==================== 表格卡片滚动设置 ==================== */
  505. .table-scroll-card {
  506. display: flex;
  507. flex-direction: column;
  508. height: calc(100vh - 110px);
  509. max-height: calc(100vh - 110px);
  510. }
  511. .table-scroll-card .semi-card-body {
  512. flex: 1 1 auto;
  513. overflow-y: auto;
  514. -ms-overflow-style: none;
  515. scrollbar-width: none;
  516. }
  517. .table-scroll-card .semi-card-body::-webkit-scrollbar {
  518. display: none;
  519. }
  520. @media (max-width: 767px) {
  521. .table-scroll-card {
  522. height: calc(100vh - 77px);
  523. max-height: calc(100vh - 77px);
  524. }
  525. }
  526. /* ==================== 模型定价页面布局 ==================== */
  527. .pricing-layout {
  528. height: calc(100vh - 60px);
  529. overflow: hidden;
  530. margin-top: 60px;
  531. }
  532. .pricing-sidebar {
  533. min-width: 460px;
  534. max-width: 460px;
  535. height: calc(100vh - 60px);
  536. background-color: var(--semi-color-bg-0);
  537. border-right: 1px solid var(--semi-color-border);
  538. overflow: auto;
  539. }
  540. .pricing-content {
  541. height: calc(100vh - 60px);
  542. background-color: var(--semi-color-bg-0);
  543. display: flex;
  544. flex-direction: column;
  545. }
  546. .pricing-pagination-divider {
  547. border-color: var(--semi-color-border);
  548. }
  549. .pricing-content-mobile {
  550. height: 100%;
  551. display: flex;
  552. flex-direction: column;
  553. overflow: auto;
  554. }
  555. .pricing-search-header {
  556. padding: 1rem;
  557. border-bottom: 1px solid var(--semi-color-border);
  558. background-color: var(--semi-color-bg-0);
  559. flex-shrink: 0;
  560. position: sticky;
  561. top: 0;
  562. z-index: 5;
  563. }
  564. .pricing-view-container {
  565. flex: 1;
  566. overflow: auto;
  567. }
  568. .pricing-view-container-mobile {
  569. flex: 1;
  570. overflow: auto;
  571. min-height: 0;
  572. }