index.css 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  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',
  23. sans-serif;
  24. color: var(--semi-color-text-0);
  25. background-color: var(--semi-color-bg-0);
  26. }
  27. /* 桌面端禁止 body 纵向滚动 - 防止 VChart tooltip 触发页面滚动条 */
  28. @media (min-width: 768px) {
  29. body {
  30. overflow-y: hidden;
  31. }
  32. }
  33. .app-layout {
  34. height: 100vh;
  35. height: 100dvh;
  36. }
  37. .app-sider {
  38. height: calc(100vh - 64px);
  39. height: calc(100dvh - 64px);
  40. }
  41. code {
  42. font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
  43. monospace;
  44. }
  45. /* ==================== 布局相关样式 ==================== */
  46. .semi-layout::-webkit-scrollbar,
  47. .semi-layout-content::-webkit-scrollbar,
  48. .semi-sider::-webkit-scrollbar {
  49. display: none;
  50. width: 0;
  51. height: 0;
  52. }
  53. .semi-layout,
  54. .semi-layout-content,
  55. .semi-sider {
  56. -ms-overflow-style: none;
  57. scrollbar-width: none;
  58. }
  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. .sidebar-nav .semi-navigation-item-text {
  75. flex: 1;
  76. min-width: 0;
  77. }
  78. .semi-navigation-item,
  79. .semi-navigation-sub-title {
  80. height: 100% !important;
  81. }
  82. .semi-navigation-item-collapsed {
  83. height: 44px !important;
  84. }
  85. #root
  86. > section
  87. > header
  88. > section
  89. > div
  90. > div
  91. > div
  92. > div.semi-navigation-header-list-outer
  93. > div.semi-navigation-list-wrapper
  94. > ul
  95. > div
  96. > a
  97. > li
  98. > span {
  99. font-weight: 600 !important;
  100. }
  101. /* 自定义侧边栏样式 */
  102. .sidebar-container {
  103. height: 100%;
  104. display: flex;
  105. flex-direction: column;
  106. min-height: 0;
  107. transition: width 0.3s ease;
  108. background: var(--semi-color-bg-0);
  109. }
  110. .sidebar-nav {
  111. flex: 1;
  112. width: 100%;
  113. background: var(--semi-color-bg-0);
  114. height: 100%;
  115. overflow-x: hidden;
  116. border-right: none;
  117. overflow-y: auto;
  118. min-height: 0;
  119. -webkit-overflow-scrolling: touch;
  120. scrollbar-width: none;
  121. -ms-overflow-style: none;
  122. }
  123. .sidebar-nav::-webkit-scrollbar {
  124. display: none;
  125. }
  126. /* 侧边栏导航项样式 */
  127. .sidebar-nav-item {
  128. border-radius: 6px;
  129. margin: 3px 8px;
  130. transition: all 0.15s ease;
  131. padding: 8px 12px;
  132. }
  133. .sidebar-nav-item:hover {
  134. background-color: rgba(var(--semi-blue-0), 0.08);
  135. color: var(--semi-color-primary);
  136. }
  137. .sidebar-nav-item-selected {
  138. background-color: rgba(var(--semi-blue-0), 0.12);
  139. color: var(--semi-color-primary);
  140. font-weight: 500;
  141. }
  142. /* 图标容器样式 */
  143. .sidebar-icon-container {
  144. width: 22px;
  145. height: 22px;
  146. display: flex;
  147. align-items: center;
  148. justify-content: center;
  149. margin-right: 10px;
  150. transition: all 0.2s ease;
  151. }
  152. .sidebar-sub-icon-container {
  153. width: 18px;
  154. height: 18px;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. margin-right: 10px;
  159. margin-left: 1px;
  160. transition: all 0.2s ease;
  161. }
  162. /* 分割线样式 */
  163. .sidebar-divider {
  164. margin: 4px 8px;
  165. opacity: 0.15;
  166. }
  167. /* 分组标签样式 */
  168. .sidebar-group-label {
  169. padding: 4px 15px 8px;
  170. color: var(--semi-color-text-2);
  171. font-size: 12px;
  172. text-transform: uppercase;
  173. letter-spacing: 0.5px;
  174. opacity: 0.8;
  175. }
  176. /* 底部折叠按钮 */
  177. .sidebar-collapse-button {
  178. display: flex;
  179. justify-content: center;
  180. align-items: center;
  181. padding: 12px;
  182. margin-top: auto;
  183. cursor: pointer;
  184. background-color: var(--semi-color-bg-0);
  185. position: sticky;
  186. bottom: 0;
  187. z-index: 10;
  188. box-shadow: 0 -10px 10px -5px var(--semi-color-bg-0);
  189. backdrop-filter: blur(4px);
  190. border-top: 1px solid rgba(var(--semi-grey-0), 0.08);
  191. }
  192. .sidebar-collapse-button-inner {
  193. width: 28px;
  194. height: 28px;
  195. border-radius: 9999px;
  196. display: flex;
  197. align-items: center;
  198. justify-content: center;
  199. background-color: var(--semi-color-fill-0);
  200. transition: all 0.2s ease;
  201. }
  202. .sidebar-collapse-icon-container {
  203. display: inline-block;
  204. transition: transform 0.3s ease;
  205. }
  206. /* 侧边栏区域容器 */
  207. .sidebar-section {
  208. padding-top: 12px;
  209. }
  210. @media (max-width: 767px) {
  211. .sidebar-container {
  212. background: var(--semi-color-bg-1);
  213. border-right: 1px solid var(--semi-color-border);
  214. }
  215. .sidebar-nav {
  216. background: var(--semi-color-bg-1);
  217. }
  218. .sidebar-collapse-button {
  219. background-color: var(--semi-color-bg-1);
  220. box-shadow: 0 -10px 10px -5px var(--semi-color-bg-1);
  221. }
  222. }
  223. /* ==================== 聊天界面样式 ==================== */
  224. .semi-chat {
  225. padding-top: 0 !important;
  226. padding-bottom: 0 !important;
  227. height: 100%;
  228. max-width: 100% !important;
  229. width: 100% !important;
  230. overflow: hidden !important;
  231. }
  232. .semi-chat-chatBox {
  233. max-width: 100% !important;
  234. overflow: hidden !important;
  235. }
  236. .semi-chat-chatBox-wrap {
  237. max-width: 100% !important;
  238. overflow: hidden !important;
  239. }
  240. .semi-chat-chatBox-content {
  241. min-width: auto;
  242. word-break: break-word;
  243. max-width: 100% !important;
  244. overflow-wrap: break-word !important;
  245. }
  246. .semi-chat-content {
  247. max-width: 100% !important;
  248. overflow: hidden !important;
  249. }
  250. .semi-chat-list {
  251. max-width: 100% !important;
  252. overflow-x: hidden !important;
  253. }
  254. .semi-chat-container {
  255. overflow-x: hidden !important;
  256. }
  257. .semi-chat-chatBox-action {
  258. column-gap: 0 !important;
  259. }
  260. .semi-chat-inputBox-clearButton.semi-button .semi-icon {
  261. font-size: 20px !important;
  262. }
  263. /* 隐藏所有聊天相关区域的滚动条 */
  264. .semi-chat::-webkit-scrollbar,
  265. .semi-chat-chatBox::-webkit-scrollbar,
  266. .semi-chat-chatBox-wrap::-webkit-scrollbar,
  267. .semi-chat-chatBox-content::-webkit-scrollbar,
  268. .semi-chat-content::-webkit-scrollbar,
  269. .semi-chat-list::-webkit-scrollbar,
  270. .semi-chat-container::-webkit-scrollbar {
  271. display: none;
  272. }
  273. .semi-chat,
  274. .semi-chat-chatBox,
  275. .semi-chat-chatBox-wrap,
  276. .semi-chat-chatBox-content,
  277. .semi-chat-content,
  278. .semi-chat-list,
  279. .semi-chat-container {
  280. -ms-overflow-style: none;
  281. scrollbar-width: none;
  282. }
  283. /* ==================== 组件特定样式 ==================== */
  284. /* SelectableButtonGroup */
  285. .sbg-button .semi-button-content {
  286. min-width: 0 !important;
  287. }
  288. .sbg-content {
  289. display: flex;
  290. align-items: center;
  291. gap: 4px;
  292. width: 100%;
  293. min-width: 0;
  294. }
  295. .sbg-ellipsis {
  296. flex: 1;
  297. min-width: 0;
  298. overflow: hidden;
  299. white-space: nowrap;
  300. text-overflow: ellipsis;
  301. }
  302. /* Badge for count/multiplier in filter buttons */
  303. .sbg-badge {
  304. display: inline-flex;
  305. align-items: center;
  306. justify-content: center;
  307. flex-shrink: 0;
  308. min-width: 18px;
  309. height: 18px;
  310. padding: 0 6px;
  311. border-radius: 9px;
  312. font-size: 11px;
  313. font-weight: 600;
  314. font-variant-numeric: tabular-nums;
  315. line-height: 1;
  316. background-color: var(--semi-color-fill-0);
  317. color: var(--semi-color-text-2);
  318. transition: background-color 0.15s ease, color 0.15s ease;
  319. }
  320. .sbg-badge-active {
  321. background-color: var(--semi-color-primary-light-active);
  322. color: var(--semi-color-primary);
  323. }
  324. /* ---- SelectableButtonGroup color variants ---- */
  325. .sbg-variant-violet {
  326. --semi-color-primary: #6d28d9;
  327. --semi-color-primary-light-default: rgba(124, 58, 237, 0.08);
  328. --semi-color-primary-light-hover: rgba(124, 58, 237, 0.15);
  329. --semi-color-primary-light-active: rgba(124, 58, 237, 0.22);
  330. }
  331. .sbg-variant-teal {
  332. --semi-color-primary: #0f766e;
  333. --semi-color-primary-light-default: rgba(20, 184, 166, 0.08);
  334. --semi-color-primary-light-hover: rgba(20, 184, 166, 0.15);
  335. --semi-color-primary-light-active: rgba(20, 184, 166, 0.22);
  336. }
  337. .sbg-variant-amber {
  338. --semi-color-primary: #b45309;
  339. --semi-color-primary-light-default: rgba(245, 158, 11, 0.08);
  340. --semi-color-primary-light-hover: rgba(245, 158, 11, 0.15);
  341. --semi-color-primary-light-active: rgba(245, 158, 11, 0.22);
  342. }
  343. .sbg-variant-rose {
  344. --semi-color-primary: #be123c;
  345. --semi-color-primary-light-default: rgba(244, 63, 94, 0.08);
  346. --semi-color-primary-light-hover: rgba(244, 63, 94, 0.15);
  347. --semi-color-primary-light-active: rgba(244, 63, 94, 0.22);
  348. }
  349. .sbg-variant-green {
  350. --semi-color-primary: #047857;
  351. --semi-color-primary-light-default: rgba(16, 185, 129, 0.08);
  352. --semi-color-primary-light-hover: rgba(16, 185, 129, 0.15);
  353. --semi-color-primary-light-active: rgba(16, 185, 129, 0.22);
  354. }
  355. /* Dark mode: lighter text, slightly stronger backgrounds */
  356. html.dark .sbg-variant-violet {
  357. --semi-color-primary: #a78bfa;
  358. --semi-color-primary-light-default: rgba(139, 92, 246, 0.14);
  359. --semi-color-primary-light-hover: rgba(139, 92, 246, 0.22);
  360. --semi-color-primary-light-active: rgba(139, 92, 246, 0.3);
  361. }
  362. html.dark .sbg-variant-teal {
  363. --semi-color-primary: #2dd4bf;
  364. --semi-color-primary-light-default: rgba(45, 212, 191, 0.14);
  365. --semi-color-primary-light-hover: rgba(45, 212, 191, 0.22);
  366. --semi-color-primary-light-active: rgba(45, 212, 191, 0.3);
  367. }
  368. html.dark .sbg-variant-amber {
  369. --semi-color-primary: #fbbf24;
  370. --semi-color-primary-light-default: rgba(251, 191, 36, 0.14);
  371. --semi-color-primary-light-hover: rgba(251, 191, 36, 0.22);
  372. --semi-color-primary-light-active: rgba(251, 191, 36, 0.3);
  373. }
  374. html.dark .sbg-variant-rose {
  375. --semi-color-primary: #fb7185;
  376. --semi-color-primary-light-default: rgba(251, 113, 133, 0.14);
  377. --semi-color-primary-light-hover: rgba(251, 113, 133, 0.22);
  378. --semi-color-primary-light-active: rgba(251, 113, 133, 0.3);
  379. }
  380. html.dark .sbg-variant-green {
  381. --semi-color-primary: #34d399;
  382. --semi-color-primary-light-default: rgba(52, 211, 153, 0.14);
  383. --semi-color-primary-light-hover: rgba(52, 211, 153, 0.22);
  384. --semi-color-primary-light-active: rgba(52, 211, 153, 0.3);
  385. }
  386. /* Tabs组件样式 */
  387. .semi-tabs-content {
  388. padding: 0 !important;
  389. height: calc(100% - 40px) !important;
  390. flex: 1 !important;
  391. }
  392. .semi-tabs-content .semi-tabs-pane {
  393. height: 100% !important;
  394. overflow: hidden !important;
  395. }
  396. .semi-tabs-content .semi-tabs-pane > div {
  397. height: 100% !important;
  398. }
  399. /* 表格样式 */
  400. .tableShow {
  401. display: revert;
  402. }
  403. .tableHiddle {
  404. display: none !important;
  405. }
  406. /* 页脚样式 */
  407. .custom-footer {
  408. font-size: 1.1em;
  409. }
  410. .custom-footer.na-cb6feafeb3990c78 {
  411. position: relative;
  412. }
  413. /* 卡片内容容器通用样式 */
  414. .card-content-container {
  415. position: relative;
  416. }
  417. .card-content-fade-indicator {
  418. position: absolute;
  419. bottom: 0;
  420. left: 0;
  421. right: 0;
  422. height: 30px;
  423. background: linear-gradient(transparent, var(--semi-color-bg-1));
  424. pointer-events: none;
  425. z-index: 1;
  426. opacity: 0;
  427. transition: opacity 0.3s ease;
  428. }
  429. /* ==================== 调试面板特定样式 ==================== */
  430. .debug-panel .semi-tabs {
  431. height: 100% !important;
  432. display: flex !important;
  433. flex-direction: column !important;
  434. }
  435. .debug-panel .semi-tabs-bar {
  436. flex-shrink: 0 !important;
  437. }
  438. .debug-panel .semi-tabs-content {
  439. flex: 1 !important;
  440. overflow: hidden !important;
  441. }
  442. /* ==================== 滚动条样式统一管理 ==================== */
  443. /* 通用隐藏滚动条工具类 */
  444. .scrollbar-hide {
  445. -ms-overflow-style: none;
  446. /* IE and Edge */
  447. scrollbar-width: none;
  448. /* Firefox */
  449. }
  450. .scrollbar-hide::-webkit-scrollbar {
  451. width: 0 !important;
  452. height: 0 !important;
  453. display: none !important;
  454. /* Chrome, Safari, Opera */
  455. }
  456. /* 表格滚动条样式 */
  457. .semi-table-body::-webkit-scrollbar {
  458. width: 6px;
  459. height: 6px;
  460. }
  461. .semi-table-body::-webkit-scrollbar-thumb {
  462. background: rgba(var(--semi-grey-2), 0.3);
  463. border-radius: 2px;
  464. }
  465. .semi-table-body::-webkit-scrollbar-thumb:hover {
  466. background: rgba(var(--semi-grey-2), 0.5);
  467. }
  468. .semi-table-body::-webkit-scrollbar-track {
  469. background: transparent;
  470. }
  471. /* 侧边抽屉滚动条样式 */
  472. .semi-sidesheet-body::-webkit-scrollbar {
  473. width: 6px;
  474. height: 6px;
  475. }
  476. .semi-sidesheet-body::-webkit-scrollbar-thumb {
  477. background: rgba(var(--semi-grey-2), 0.3);
  478. border-radius: 2px;
  479. }
  480. .semi-sidesheet-body::-webkit-scrollbar-thumb:hover {
  481. background: rgba(var(--semi-grey-2), 0.5);
  482. }
  483. .semi-sidesheet-body::-webkit-scrollbar-track {
  484. background: transparent;
  485. }
  486. /* 隐藏内容区域滚动条 */
  487. .pricing-scroll-hide,
  488. .model-test-scroll,
  489. .card-content-scroll,
  490. .model-settings-scroll,
  491. .thinking-content-scroll,
  492. .custom-request-textarea .semi-input,
  493. .custom-request-textarea textarea,
  494. .notice-content-scroll {
  495. -ms-overflow-style: none;
  496. scrollbar-width: none;
  497. }
  498. .pricing-scroll-hide::-webkit-scrollbar,
  499. .model-test-scroll::-webkit-scrollbar,
  500. .card-content-scroll::-webkit-scrollbar,
  501. .model-settings-scroll::-webkit-scrollbar,
  502. .thinking-content-scroll::-webkit-scrollbar,
  503. .custom-request-textarea .semi-input::-webkit-scrollbar,
  504. .custom-request-textarea textarea::-webkit-scrollbar,
  505. .notice-content-scroll::-webkit-scrollbar {
  506. display: none;
  507. }
  508. /* 图片列表滚动条样式 */
  509. .image-list-scroll::-webkit-scrollbar {
  510. width: 6px;
  511. height: 6px;
  512. }
  513. .image-list-scroll::-webkit-scrollbar-thumb {
  514. background: var(--semi-color-tertiary-light-default);
  515. border-radius: 3px;
  516. }
  517. .image-list-scroll::-webkit-scrollbar-thumb:hover {
  518. background: var(--semi-color-tertiary);
  519. }
  520. .image-list-scroll::-webkit-scrollbar-track {
  521. background: transparent;
  522. }
  523. /* ==================== 同步倍率 - 渠道选择器 ==================== */
  524. .components-transfer-source-item,
  525. .components-transfer-selected-item {
  526. display: flex;
  527. align-items: center;
  528. padding: 8px;
  529. }
  530. .semi-transfer-left-list,
  531. .semi-transfer-right-list {
  532. -ms-overflow-style: none;
  533. scrollbar-width: none;
  534. }
  535. .semi-transfer-left-list::-webkit-scrollbar,
  536. .semi-transfer-right-list::-webkit-scrollbar {
  537. display: none;
  538. }
  539. .components-transfer-source-item .semi-checkbox,
  540. .components-transfer-selected-item .semi-checkbox {
  541. display: flex;
  542. align-items: center;
  543. width: 100%;
  544. }
  545. .components-transfer-source-item .semi-avatar,
  546. .components-transfer-selected-item .semi-avatar {
  547. margin-right: 12px;
  548. flex-shrink: 0;
  549. }
  550. .components-transfer-source-item .info,
  551. .components-transfer-selected-item .info {
  552. flex: 1;
  553. overflow: hidden;
  554. display: flex;
  555. flex-direction: column;
  556. justify-content: center;
  557. }
  558. .components-transfer-source-item .name,
  559. .components-transfer-selected-item .name {
  560. font-weight: 500;
  561. white-space: nowrap;
  562. overflow: hidden;
  563. text-overflow: ellipsis;
  564. }
  565. .components-transfer-source-item .email,
  566. .components-transfer-selected-item .email {
  567. font-size: 12px;
  568. color: var(--semi-color-text-2);
  569. display: flex;
  570. align-items: center;
  571. }
  572. .components-transfer-selected-item .semi-icon-close {
  573. margin-left: 8px;
  574. cursor: pointer;
  575. color: var(--semi-color-text-2);
  576. }
  577. .components-transfer-selected-item .semi-icon-close:hover {
  578. color: var(--semi-color-text-0);
  579. }
  580. /* ==================== 未读通知闪光效果 ==================== */
  581. @keyframes sweep-shine {
  582. 0% {
  583. background-position: 200% 0;
  584. }
  585. 100% {
  586. background-position: -200% 0;
  587. }
  588. }
  589. .shine-text {
  590. background: linear-gradient(
  591. 90deg,
  592. currentColor 0%,
  593. currentColor 40%,
  594. rgba(255, 255, 255, 0.9) 50%,
  595. currentColor 60%,
  596. currentColor 100%
  597. );
  598. background-size: 200% 100%;
  599. -webkit-background-clip: text;
  600. background-clip: text;
  601. -webkit-text-fill-color: transparent;
  602. animation: sweep-shine 4s linear infinite;
  603. }
  604. .dark .shine-text {
  605. background: linear-gradient(
  606. 90deg,
  607. currentColor 0%,
  608. currentColor 40%,
  609. #facc15 50%,
  610. currentColor 60%,
  611. currentColor 100%
  612. );
  613. background-size: 200% 100%;
  614. -webkit-background-clip: text;
  615. background-clip: text;
  616. -webkit-text-fill-color: transparent;
  617. }
  618. /* ==================== ScrollList 定制样式 ==================== */
  619. .semi-scrolllist,
  620. .semi-scrolllist * {
  621. -ms-overflow-style: none;
  622. /* IE, Edge */
  623. scrollbar-width: none;
  624. /* Firefox */
  625. background: transparent !important;
  626. }
  627. .semi-scrolllist::-webkit-scrollbar,
  628. .semi-scrolllist *::-webkit-scrollbar {
  629. width: 0 !important;
  630. height: 0 !important;
  631. display: none !important;
  632. }
  633. .semi-scrolllist-body {
  634. padding: 1px !important;
  635. }
  636. .semi-scrolllist-list-outer {
  637. padding-right: 0 !important;
  638. }
  639. /* ==================== Banner 背景模糊球 ==================== */
  640. .blur-ball {
  641. position: absolute;
  642. width: 360px;
  643. height: 360px;
  644. border-radius: 50%;
  645. filter: blur(120px);
  646. pointer-events: none;
  647. z-index: -1;
  648. }
  649. .blur-ball-indigo {
  650. background: #6366f1;
  651. /* indigo-500 */
  652. top: 40px;
  653. left: 50%;
  654. transform: translateX(-50%);
  655. opacity: 0.5;
  656. }
  657. .blur-ball-teal {
  658. background: #14b8a6;
  659. /* teal-400 */
  660. top: 200px;
  661. left: 30%;
  662. opacity: 0.4;
  663. }
  664. /* 浅色主题下让模糊球更柔和 */
  665. html:not(.dark) .blur-ball-indigo {
  666. opacity: 0.25;
  667. }
  668. html:not(.dark) .blur-ball-teal {
  669. opacity: 0.2;
  670. }
  671. /* ==================== 卡片马卡龙模糊球(类封装) ==================== */
  672. /* 使用方式:给容器加上 with-pastel-balls 类即可,无需在 JSX 中插入额外节点 */
  673. .with-pastel-balls {
  674. position: relative;
  675. overflow: hidden;
  676. /* 默认变量(明亮模式) */
  677. --pb1: #ffd1dc;
  678. /* 粉 */
  679. --pb2: #e5d4ff;
  680. /* 薰衣草 */
  681. --pb3: #d1fff6;
  682. /* 薄荷 */
  683. --pb4: #ffe5d9;
  684. /* 桃 */
  685. --pb-opacity: 0.55;
  686. --pb-blur: 60px;
  687. }
  688. .with-pastel-balls::before {
  689. content: '';
  690. position: absolute;
  691. inset: 0;
  692. pointer-events: none;
  693. z-index: 0;
  694. background: radial-gradient(
  695. circle at -5% -10%,
  696. var(--pb1) 0%,
  697. transparent 60%
  698. ),
  699. radial-gradient(circle at 105% -10%, var(--pb2) 0%, transparent 55%),
  700. radial-gradient(circle at 5% 110%, var(--pb3) 0%, transparent 55%),
  701. radial-gradient(circle at 105% 110%, var(--pb4) 0%, transparent 50%);
  702. filter: blur(var(--pb-blur));
  703. opacity: var(--pb-opacity);
  704. transform: translateZ(0);
  705. }
  706. /* 暗黑模式下更柔和的色彩和透明度 */
  707. html.dark .with-pastel-balls {
  708. /* 使用与明亮模式一致的“刚才那组”马卡龙色,但整体更柔和 */
  709. --pb1: #ffd1dc;
  710. /* 粉 */
  711. --pb2: #e5d4ff;
  712. /* 薰衣草 */
  713. --pb3: #d1fff6;
  714. /* 薄荷 */
  715. --pb4: #ffe5d9;
  716. /* 桃 */
  717. --pb-opacity: 0.36;
  718. --pb-blur: 65px;
  719. }
  720. /* 暗黑模式下用更柔和的混合模式避免突兀的高亮 */
  721. html.dark .with-pastel-balls::before {
  722. mix-blend-mode: screen;
  723. }
  724. /* ==================== 表格卡片滚动设置 ==================== */
  725. .table-scroll-card {
  726. display: flex;
  727. flex-direction: column;
  728. height: calc(100vh - 110px);
  729. max-height: calc(100vh - 110px);
  730. }
  731. .table-scroll-card .semi-card-body {
  732. flex: 1 1 auto;
  733. overflow-y: auto;
  734. }
  735. .table-scroll-card .semi-card-body::-webkit-scrollbar {
  736. width: 6px;
  737. }
  738. .table-scroll-card .semi-card-body::-webkit-scrollbar-thumb {
  739. background: rgba(var(--semi-grey-2), 0.3);
  740. border-radius: 2px;
  741. }
  742. .table-scroll-card .semi-card-body::-webkit-scrollbar-thumb:hover {
  743. background: rgba(var(--semi-grey-2), 0.5);
  744. }
  745. .table-scroll-card .semi-card-body::-webkit-scrollbar-track {
  746. background: transparent;
  747. }
  748. @media (max-width: 767px) {
  749. .table-scroll-card {
  750. height: calc(100vh - 77px);
  751. max-height: calc(100vh - 77px);
  752. }
  753. }
  754. /* ==================== 模型定价页面布局 ==================== */
  755. .pricing-layout {
  756. height: calc(100vh - 60px);
  757. overflow: hidden;
  758. margin-top: 60px;
  759. }
  760. .pricing-sidebar {
  761. width: clamp(280px, 24vw, 520px) !important;
  762. min-width: clamp(280px, 24vw, 520px) !important;
  763. max-width: clamp(280px, 24vw, 520px) !important;
  764. height: calc(100vh - 60px);
  765. background-color: var(--semi-color-bg-0);
  766. overflow: auto;
  767. }
  768. .pricing-content {
  769. height: calc(100vh - 60px);
  770. background-color: var(--semi-color-bg-0);
  771. display: flex;
  772. flex-direction: column;
  773. }
  774. .pricing-pagination-divider {
  775. border-color: var(--semi-color-border);
  776. }
  777. .pricing-content-mobile {
  778. height: 100%;
  779. display: flex;
  780. flex-direction: column;
  781. overflow: auto;
  782. }
  783. .pricing-search-header {
  784. padding: 0.5rem;
  785. background-color: var(--semi-color-bg-0);
  786. flex-shrink: 0;
  787. position: sticky;
  788. top: 0;
  789. z-index: 5;
  790. }
  791. .pricing-view-container {
  792. flex: 1;
  793. overflow: auto;
  794. }
  795. .pricing-view-container-mobile {
  796. flex: 1;
  797. overflow: auto;
  798. min-height: 0;
  799. }
  800. /* ==================== semi-ui 组件自定义样式 ==================== */
  801. .semi-card-header,
  802. .semi-card-body {
  803. padding: 10px !important;
  804. }
  805. /* ==================== 使用日志: channel affinity tag ==================== */
  806. .semi-tag.channel-affinity-tag {
  807. border: 1px solid rgba(var(--semi-cyan-5), 0.35);
  808. background-color: rgba(var(--semi-cyan-5), 0.15);
  809. color: rgba(var(--semi-cyan-9), 1);
  810. cursor: help;
  811. transition:
  812. background-color 120ms ease,
  813. border-color 120ms ease,
  814. box-shadow 120ms ease;
  815. }
  816. .semi-tag.channel-affinity-tag:hover {
  817. background-color: rgba(var(--semi-cyan-5), 0.22);
  818. border-color: rgba(var(--semi-cyan-5), 0.6);
  819. box-shadow: 0 0 0 2px rgba(var(--semi-cyan-5), 0.18);
  820. }
  821. .semi-tag.channel-affinity-tag:active {
  822. background-color: rgba(var(--semi-cyan-5), 0.28);
  823. }
  824. .semi-tag.channel-affinity-tag .channel-affinity-tag-content {
  825. display: inline-flex;
  826. align-items: center;
  827. gap: 0.25rem;
  828. }
  829. /* ==================== 自定义圆角样式 ==================== */
  830. .semi-radio,
  831. .semi-tagInput,
  832. .semi-input-textarea-wrapper,
  833. .semi-navigation-sub-title,
  834. .semi-chat-inputBox-sendButton,
  835. .semi-page-item,
  836. .semi-navigation-item,
  837. .semi-tag-closable,
  838. .semi-input-wrapper,
  839. .semi-tabs-tab-button,
  840. .semi-select,
  841. .semi-button,
  842. .semi-datepicker-range-input {
  843. border-radius: 10px !important;
  844. }
  845. @keyframes slideInLeft {
  846. from {
  847. transform: translateX(-100%);
  848. opacity: 0;
  849. }
  850. to {
  851. transform: translateX(0);
  852. opacity: 1;
  853. }
  854. }
  855. /* Channel advanced settings side panel animations */
  856. @keyframes slideInRight {
  857. from {
  858. transform: translateX(100%);
  859. opacity: 0;
  860. }
  861. to {
  862. transform: translateX(0);
  863. opacity: 1;
  864. }
  865. }
  866. .ec-dbcd0a3c01b55203 { forced-color-adjust: auto; }