styles.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. /* 基础样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  9. background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  10. min-height: 100vh;
  11. color: #e0e0e0;
  12. line-height: 1.6;
  13. }
  14. .container {
  15. max-width: 1400px;
  16. margin: 0 auto;
  17. padding: 20px;
  18. }
  19. /* 头部样式 */
  20. .header {
  21. text-align: center;
  22. padding: 30px 0;
  23. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  24. margin-bottom: 30px;
  25. }
  26. .header h1 {
  27. font-size: 2.2rem;
  28. color: #00d4ff;
  29. margin-bottom: 10px;
  30. text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  31. }
  32. .subtitle {
  33. color: #888;
  34. font-size: 1rem;
  35. }
  36. /* 上传区域 */
  37. .upload-section {
  38. margin-bottom: 30px;
  39. }
  40. .upload-area {
  41. border: 2px dashed #4a4a6a;
  42. border-radius: 12px;
  43. padding: 40px;
  44. text-align: center;
  45. cursor: pointer;
  46. transition: all 0.3s ease;
  47. background: rgba(255, 255, 255, 0.02);
  48. }
  49. .upload-area:hover {
  50. border-color: #00d4ff;
  51. background: rgba(0, 212, 255, 0.05);
  52. }
  53. .upload-area.dragover {
  54. border-color: #00ff88;
  55. background: rgba(0, 255, 136, 0.1);
  56. }
  57. .upload-icon {
  58. font-size: 3rem;
  59. margin-bottom: 15px;
  60. }
  61. .upload-area p {
  62. margin: 5px 0;
  63. }
  64. .upload-area .hint {
  65. font-size: 0.85rem;
  66. color: #666;
  67. }
  68. .sample-buttons {
  69. display: flex;
  70. gap: 10px;
  71. justify-content: center;
  72. margin-top: 15px;
  73. }
  74. /* 按钮样式 */
  75. .btn {
  76. padding: 10px 20px;
  77. border: none;
  78. border-radius: 6px;
  79. cursor: pointer;
  80. font-size: 0.9rem;
  81. transition: all 0.3s ease;
  82. }
  83. .btn-primary {
  84. background: linear-gradient(135deg, #00d4ff, #0099cc);
  85. color: white;
  86. }
  87. .btn-secondary {
  88. background: rgba(255, 255, 255, 0.1);
  89. color: #e0e0e0;
  90. border: 1px solid rgba(255, 255, 255, 0.2);
  91. }
  92. .btn:hover {
  93. transform: translateY(-2px);
  94. box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  95. }
  96. /* 概览卡片 */
  97. .pipeline-overview {
  98. margin-bottom: 30px;
  99. }
  100. .pipeline-overview h2,
  101. .pipeline-flow h2,
  102. .detail-panel h2,
  103. .stages-detail h2 {
  104. color: #00d4ff;
  105. margin-bottom: 20px;
  106. font-size: 1.3rem;
  107. }
  108. .overview-cards {
  109. display: grid;
  110. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  111. gap: 20px;
  112. }
  113. .overview-card {
  114. background: rgba(255, 255, 255, 0.05);
  115. border-radius: 12px;
  116. padding: 20px;
  117. display: flex;
  118. align-items: center;
  119. gap: 15px;
  120. border: 1px solid rgba(255, 255, 255, 0.1);
  121. }
  122. .card-icon {
  123. font-size: 2rem;
  124. }
  125. .card-content {
  126. display: flex;
  127. flex-direction: column;
  128. }
  129. .card-label {
  130. font-size: 0.85rem;
  131. color: #888;
  132. }
  133. .card-value {
  134. font-size: 1.2rem;
  135. font-weight: 600;
  136. color: #00ff88;
  137. }
  138. /* 流程图样式 */
  139. .flow-container {
  140. display: flex;
  141. flex-wrap: wrap;
  142. gap: 20px;
  143. padding: 20px;
  144. background: rgba(0, 0, 0, 0.2);
  145. border-radius: 12px;
  146. overflow-x: auto;
  147. }
  148. .flow-node {
  149. background: rgba(255, 255, 255, 0.05);
  150. border: 2px solid #4a4a6a;
  151. border-radius: 12px;
  152. padding: 20px;
  153. min-width: 200px;
  154. cursor: pointer;
  155. transition: all 0.3s ease;
  156. position: relative;
  157. }
  158. .flow-node:hover {
  159. border-color: #00d4ff;
  160. transform: translateY(-3px);
  161. box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
  162. }
  163. .flow-node.active {
  164. border-color: #00ff88;
  165. background: rgba(0, 255, 136, 0.1);
  166. }
  167. .flow-node::after {
  168. content: '→';
  169. position: absolute;
  170. right: -25px;
  171. top: 50%;
  172. transform: translateY(-50%);
  173. font-size: 1.5rem;
  174. color: #4a4a6a;
  175. }
  176. .flow-node:last-child::after {
  177. display: none;
  178. }
  179. .node-header {
  180. display: flex;
  181. align-items: center;
  182. gap: 10px;
  183. margin-bottom: 10px;
  184. }
  185. .node-icon {
  186. font-size: 1.5rem;
  187. }
  188. .node-title {
  189. font-weight: 600;
  190. color: #00d4ff;
  191. }
  192. .node-step {
  193. font-size: 0.75rem;
  194. background: rgba(0, 212, 255, 0.2);
  195. padding: 2px 8px;
  196. border-radius: 10px;
  197. color: #00d4ff;
  198. }
  199. .node-stats {
  200. display: flex;
  201. flex-direction: column;
  202. gap: 5px;
  203. font-size: 0.85rem;
  204. color: #888;
  205. }
  206. .node-stat {
  207. display: flex;
  208. justify-content: space-between;
  209. }
  210. .node-stat-value {
  211. color: #00ff88;
  212. }
  213. /* 标签页样式 */
  214. .tabs {
  215. display: flex;
  216. gap: 5px;
  217. margin-bottom: 15px;
  218. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  219. padding-bottom: 10px;
  220. }
  221. .tab-btn {
  222. padding: 10px 20px;
  223. background: transparent;
  224. border: none;
  225. color: #888;
  226. cursor: pointer;
  227. border-radius: 6px 6px 0 0;
  228. transition: all 0.3s ease;
  229. }
  230. .tab-btn:hover {
  231. color: #e0e0e0;
  232. background: rgba(255, 255, 255, 0.05);
  233. }
  234. .tab-btn.active {
  235. color: #00d4ff;
  236. background: rgba(0, 212, 255, 0.1);
  237. border-bottom: 2px solid #00d4ff;
  238. }
  239. .tab-content {
  240. background: rgba(0, 0, 0, 0.3);
  241. border-radius: 8px;
  242. padding: 20px;
  243. }
  244. .tab-pane {
  245. display: none;
  246. }
  247. .tab-pane.active {
  248. display: block;
  249. }
  250. /* JSON查看器样式 */
  251. .json-viewer {
  252. background: rgba(0, 0, 0, 0.4);
  253. border-radius: 8px;
  254. padding: 15px;
  255. overflow-x: auto;
  256. font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  257. font-size: 0.85rem;
  258. line-height: 1.5;
  259. max-height: 500px;
  260. overflow-y: auto;
  261. white-space: pre-wrap;
  262. word-break: break-all;
  263. }
  264. .json-key {
  265. color: #ff79c6;
  266. }
  267. .json-string {
  268. color: #50fa7b;
  269. }
  270. .json-number {
  271. color: #bd93f9;
  272. }
  273. .json-boolean {
  274. color: #ffb86c;
  275. }
  276. .json-null {
  277. color: #6272a4;
  278. }
  279. /* 手风琴样式 */
  280. .accordion {
  281. display: flex;
  282. flex-direction: column;
  283. gap: 10px;
  284. }
  285. .accordion-item {
  286. background: rgba(255, 255, 255, 0.03);
  287. border: 1px solid rgba(255, 255, 255, 0.1);
  288. border-radius: 8px;
  289. overflow: hidden;
  290. }
  291. .accordion-header {
  292. padding: 15px 20px;
  293. cursor: pointer;
  294. display: flex;
  295. justify-content: space-between;
  296. align-items: center;
  297. transition: background 0.3s ease;
  298. }
  299. .accordion-header:hover {
  300. background: rgba(255, 255, 255, 0.05);
  301. }
  302. .accordion-header.active {
  303. background: rgba(0, 212, 255, 0.1);
  304. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  305. }
  306. .accordion-title {
  307. display: flex;
  308. align-items: center;
  309. gap: 10px;
  310. }
  311. .accordion-icon {
  312. transition: transform 0.3s ease;
  313. }
  314. .accordion-header.active .accordion-icon {
  315. transform: rotate(180deg);
  316. }
  317. .accordion-content {
  318. display: none;
  319. padding: 20px;
  320. }
  321. .accordion-content.active {
  322. display: block;
  323. }
  324. /* 数据流展示 */
  325. .data-flow {
  326. display: grid;
  327. grid-template-columns: 1fr 1fr;
  328. gap: 20px;
  329. }
  330. .data-section {
  331. background: rgba(0, 0, 0, 0.2);
  332. border-radius: 8px;
  333. padding: 15px;
  334. }
  335. .data-section h4 {
  336. color: #00d4ff;
  337. margin-bottom: 10px;
  338. font-size: 0.95rem;
  339. display: flex;
  340. align-items: center;
  341. gap: 8px;
  342. }
  343. .data-section h4::before {
  344. content: '';
  345. width: 8px;
  346. height: 8px;
  347. border-radius: 50%;
  348. }
  349. .data-section.input h4::before {
  350. background: #ffb86c;
  351. }
  352. .data-section.output h4::before {
  353. background: #50fa7b;
  354. }
  355. /* 子步骤样式 */
  356. .sub-steps {
  357. margin-top: 15px;
  358. padding-top: 15px;
  359. border-top: 1px dashed rgba(255, 255, 255, 0.1);
  360. }
  361. .sub-step {
  362. background: rgba(0, 0, 0, 0.2);
  363. border-radius: 8px;
  364. padding: 15px;
  365. margin-bottom: 10px;
  366. border-left: 3px solid #00d4ff;
  367. }
  368. .sub-step-header {
  369. font-weight: 600;
  370. color: #00d4ff;
  371. margin-bottom: 10px;
  372. }
  373. /* 响应式设计 */
  374. @media (max-width: 768px) {
  375. .data-flow {
  376. grid-template-columns: 1fr;
  377. }
  378. .flow-container {
  379. flex-direction: column;
  380. }
  381. .flow-node::after {
  382. content: '↓';
  383. right: 50%;
  384. top: auto;
  385. bottom: -25px;
  386. transform: translateX(50%);
  387. }
  388. .overview-cards {
  389. grid-template-columns: 1fr;
  390. }
  391. }
  392. /* 滚动条样式 */
  393. ::-webkit-scrollbar {
  394. width: 8px;
  395. height: 8px;
  396. }
  397. ::-webkit-scrollbar-track {
  398. background: rgba(0, 0, 0, 0.2);
  399. border-radius: 4px;
  400. }
  401. ::-webkit-scrollbar-thumb {
  402. background: #4a4a6a;
  403. border-radius: 4px;
  404. }
  405. ::-webkit-scrollbar-thumb:hover {
  406. background: #5a5a7a;
  407. }
  408. /* 加载动画 */
  409. .loading {
  410. display: flex;
  411. justify-content: center;
  412. align-items: center;
  413. padding: 40px;
  414. }
  415. .loading-spinner {
  416. width: 40px;
  417. height: 40px;
  418. border: 3px solid rgba(0, 212, 255, 0.2);
  419. border-top-color: #00d4ff;
  420. border-radius: 50%;
  421. animation: spin 1s linear infinite;
  422. }
  423. @keyframes spin {
  424. to {
  425. transform: rotate(360deg);
  426. }
  427. }
  428. /* 空状态 */
  429. .empty-state {
  430. text-align: center;
  431. padding: 60px 20px;
  432. color: #666;
  433. }
  434. .empty-state-icon {
  435. font-size: 4rem;
  436. margin-bottom: 20px;
  437. }
  438. /* RAG输入区域样式 */
  439. .rag-input-section {
  440. background: rgba(255, 255, 255, 0.03);
  441. border: 1px solid rgba(255, 255, 255, 0.1);
  442. border-radius: 12px;
  443. padding: 25px;
  444. margin-bottom: 30px;
  445. position: relative;
  446. }
  447. .rag-input-section h2 {
  448. color: #00d4ff;
  449. margin-bottom: 15px;
  450. font-size: 1.3rem;
  451. }
  452. .server-status {
  453. position: absolute;
  454. top: 25px;
  455. right: 25px;
  456. display: flex;
  457. align-items: center;
  458. gap: 8px;
  459. font-size: 0.85rem;
  460. }
  461. .status-dot {
  462. width: 10px;
  463. height: 10px;
  464. border-radius: 50%;
  465. animation: pulse 2s infinite;
  466. }
  467. .status-dot.online {
  468. background: #00ff88;
  469. box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  470. }
  471. .status-dot.warning {
  472. background: #ffb86c;
  473. box-shadow: 0 0 10px rgba(255, 184, 108, 0.5);
  474. }
  475. .status-dot.offline {
  476. background: #ff5555;
  477. box-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
  478. animation: none;
  479. }
  480. @keyframes pulse {
  481. 0%, 100% { opacity: 1; }
  482. 50% { opacity: 0.5; }
  483. }
  484. .input-area {
  485. margin-bottom: 15px;
  486. }
  487. .input-area textarea {
  488. width: 100%;
  489. min-height: 150px;
  490. background: rgba(0, 0, 0, 0.3);
  491. border: 1px solid rgba(255, 255, 255, 0.1);
  492. border-radius: 8px;
  493. padding: 15px;
  494. color: #e0e0e0;
  495. font-family: inherit;
  496. font-size: 0.95rem;
  497. line-height: 1.6;
  498. resize: vertical;
  499. transition: border-color 0.3s ease;
  500. }
  501. .input-area textarea:focus {
  502. outline: none;
  503. border-color: #00d4ff;
  504. }
  505. .input-area textarea::placeholder {
  506. color: #666;
  507. }
  508. .action-buttons {
  509. display: flex;
  510. gap: 10px;
  511. flex-wrap: wrap;
  512. }
  513. .btn-icon {
  514. margin-right: 5px;
  515. }
  516. .btn:disabled {
  517. opacity: 0.5;
  518. cursor: not-allowed;
  519. transform: none !important;
  520. }
  521. .loading-overlay {
  522. position: absolute;
  523. top: 0;
  524. left: 0;
  525. right: 0;
  526. bottom: 0;
  527. background: rgba(26, 26, 46, 0.95);
  528. border-radius: 12px;
  529. display: flex;
  530. flex-direction: column;
  531. justify-content: center;
  532. align-items: center;
  533. gap: 15px;
  534. z-index: 10;
  535. }
  536. .loading-overlay p {
  537. color: #00d4ff;
  538. font-size: 1rem;
  539. }
  540. /* 调整上传区域样式 */
  541. .upload-section {
  542. margin-bottom: 30px;
  543. }
  544. .upload-area {
  545. border: 2px dashed #4a4a6a;
  546. border-radius: 12px;
  547. padding: 20px;
  548. text-align: center;
  549. cursor: pointer;
  550. transition: all 0.3s ease;
  551. background: rgba(255, 255, 255, 0.02);
  552. }
  553. .upload-area .upload-icon {
  554. font-size: 2rem;
  555. margin-bottom: 10px;
  556. }
  557. .upload-area p {
  558. font-size: 0.9rem;
  559. color: #888;
  560. }
  561. /* 流程节点执行时间显示 */
  562. .node-time {
  563. font-size: 0.75rem;
  564. color: #ffb86c;
  565. margin-top: 5px;
  566. }