index.css 21 KB

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