index.css 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249
  1. /* ============================================================
  2. Paper Innovation Agent - 全局样式
  3. 现代专业风格,深色为主、浅色辅助,适合简历项目展示
  4. ============================================================ */
  5. :root {
  6. /* 颜色变量 - 深色主题为默认 */
  7. --bg-primary: #0f172a; /* 主背景:深蓝灰 */
  8. --bg-secondary: #1e293b; /* 次背景:卡片底色 */
  9. --bg-tertiary: #334155; /* 三级背景:输入框/悬停 */
  10. --bg-elevated: #1e293b; /* 抬升卡片 */
  11. --border-color: #334155; /* 边框 */
  12. --border-strong: #475569; /* 强边框 */
  13. --text-primary: #f1f5f9; /* 主文字 */
  14. --text-secondary: #cbd5e1; /* 次文字 */
  15. --text-muted: #94a3b8; /* 弱化文字 */
  16. --accent: #3b82f6; /* 主强调色:蓝 */
  17. --accent-hover: #2563eb;
  18. --accent-soft: rgba(59, 130, 246, 0.15);
  19. --success: #10b981; /* 成功:绿 */
  20. --success-soft: rgba(16, 185, 129, 0.15);
  21. --warning: #f59e0b; /* 警告:橙 */
  22. --warning-soft: rgba(245, 158, 11, 0.15);
  23. --danger: #ef4444; /* 失败:红 */
  24. --danger-soft: rgba(239, 68, 68, 0.15);
  25. --info: #06b6d4; /* 信息:青 */
  26. --info-soft: rgba(6, 182, 212, 0.15);
  27. /* 评分维度色 */
  28. --score-novelty: #8b5cf6; /* 新颖性:紫 */
  29. --score-feasibility: #06b6d4;/* 可行性:青 */
  30. --score-significance: #f59e0b;/* 显著性:橙 */
  31. /* 尺寸 */
  32. --radius-sm: 6px;
  33. --radius-md: 10px;
  34. --radius-lg: 14px;
  35. --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  36. --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  37. --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  38. --header-height: 60px;
  39. --sidebar-width: 380px;
  40. }
  41. * {
  42. box-sizing: border-box;
  43. }
  44. html, body, #root {
  45. margin: 0;
  46. padding: 0;
  47. height: 100%;
  48. width: 100%;
  49. }
  50. body {
  51. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
  52. 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  53. background: var(--bg-primary);
  54. color: var(--text-primary);
  55. font-size: 14px;
  56. line-height: 1.6;
  57. -webkit-font-smoothing: antialiased;
  58. -moz-osx-font-smoothing: grayscale;
  59. }
  60. button {
  61. font-family: inherit;
  62. cursor: pointer;
  63. border: none;
  64. outline: none;
  65. }
  66. input {
  67. font-family: inherit;
  68. outline: none;
  69. }
  70. /* ====================== 应用主布局 ====================== */
  71. .app {
  72. display: flex;
  73. flex-direction: column;
  74. height: 100vh;
  75. overflow: hidden;
  76. }
  77. /* 顶部标题栏 */
  78. .app-header {
  79. height: var(--header-height);
  80. display: flex;
  81. align-items: center;
  82. justify-content: space-between;
  83. padding: 0 24px;
  84. background: var(--bg-secondary);
  85. border-bottom: 1px solid var(--border-color);
  86. flex-shrink: 0;
  87. }
  88. .app-header .brand {
  89. display: flex;
  90. align-items: center;
  91. gap: 12px;
  92. }
  93. .app-header .brand-logo {
  94. width: 32px;
  95. height: 32px;
  96. border-radius: 8px;
  97. background: linear-gradient(135deg, var(--accent), var(--info));
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. font-weight: 700;
  102. color: white;
  103. font-size: 16px;
  104. letter-spacing: -0.5px;
  105. }
  106. .app-header .brand-title {
  107. font-size: 16px;
  108. font-weight: 600;
  109. color: var(--text-primary);
  110. letter-spacing: 0.2px;
  111. }
  112. .app-header .brand-subtitle {
  113. font-size: 12px;
  114. color: var(--text-muted);
  115. margin-top: 2px;
  116. }
  117. .app-header .header-right {
  118. display: flex;
  119. align-items: center;
  120. gap: 16px;
  121. font-size: 12px;
  122. color: var(--text-muted);
  123. }
  124. .app-header .model-badge {
  125. display: inline-flex;
  126. align-items: center;
  127. gap: 6px;
  128. padding: 5px 10px;
  129. background: var(--accent-soft);
  130. color: var(--accent);
  131. border: 1px solid rgba(59, 130, 246, 0.3);
  132. border-radius: 999px;
  133. font-size: 12px;
  134. font-weight: 500;
  135. }
  136. .app-header .model-badge .dot {
  137. width: 6px;
  138. height: 6px;
  139. border-radius: 50%;
  140. background: var(--success);
  141. box-shadow: 0 0 6px var(--success);
  142. }
  143. .app-header .model-badge .dot.offline {
  144. background: var(--text-muted);
  145. box-shadow: none;
  146. }
  147. /* 主体两栏 */
  148. .app-body {
  149. flex: 1;
  150. display: flex;
  151. min-height: 0;
  152. }
  153. .sidebar {
  154. width: var(--sidebar-width);
  155. flex-shrink: 0;
  156. background: var(--bg-secondary);
  157. border-right: 1px solid var(--border-color);
  158. padding: 20px;
  159. overflow-y: auto;
  160. display: flex;
  161. flex-direction: column;
  162. gap: 20px;
  163. }
  164. .main-content {
  165. flex: 1;
  166. min-width: 0;
  167. padding: 24px;
  168. overflow-y: auto;
  169. display: flex;
  170. flex-direction: column;
  171. }
  172. /* ====================== 输入区 ====================== */
  173. .input-card {
  174. background: var(--bg-elevated);
  175. border: 1px solid var(--border-color);
  176. border-radius: var(--radius-md);
  177. padding: 16px;
  178. display: flex;
  179. flex-direction: column;
  180. gap: 12px;
  181. }
  182. .input-card .card-title {
  183. font-size: 13px;
  184. font-weight: 600;
  185. color: var(--text-secondary);
  186. text-transform: uppercase;
  187. letter-spacing: 0.6px;
  188. margin: 0;
  189. }
  190. .input-card .path-input {
  191. width: 100%;
  192. padding: 10px 12px;
  193. background: var(--bg-primary);
  194. border: 1px solid var(--border-strong);
  195. border-radius: var(--radius-sm);
  196. color: var(--text-primary);
  197. font-size: 13px;
  198. transition: border-color 0.15s, box-shadow 0.15s;
  199. }
  200. .input-card .path-input:focus {
  201. border-color: var(--accent);
  202. box-shadow: 0 0 0 3px var(--accent-soft);
  203. }
  204. .input-card .path-input:disabled {
  205. opacity: 0.6;
  206. cursor: not-allowed;
  207. }
  208. .input-card .hint {
  209. font-size: 11px;
  210. color: var(--text-muted);
  211. margin: 0;
  212. }
  213. .btn {
  214. padding: 10px 16px;
  215. border-radius: var(--radius-sm);
  216. font-size: 13px;
  217. font-weight: 500;
  218. transition: background 0.15s, transform 0.05s, opacity 0.15s;
  219. display: inline-flex;
  220. align-items: center;
  221. justify-content: center;
  222. gap: 8px;
  223. }
  224. .btn:disabled {
  225. opacity: 0.5;
  226. cursor: not-allowed;
  227. }
  228. .btn-primary {
  229. background: var(--accent);
  230. color: white;
  231. }
  232. .btn-primary:hover:not(:disabled) {
  233. background: var(--accent-hover);
  234. }
  235. .btn-primary:active:not(:disabled) {
  236. transform: translateY(1px);
  237. }
  238. .btn-secondary {
  239. background: var(--bg-tertiary);
  240. color: var(--text-primary);
  241. border: 1px solid var(--border-strong);
  242. }
  243. .btn-secondary:hover:not(:disabled) {
  244. background: var(--border-strong);
  245. }
  246. /* ====================== 进度条 ====================== */
  247. .progress-section .section-label {
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: baseline;
  251. font-size: 12px;
  252. color: var(--text-muted);
  253. margin-bottom: 8px;
  254. }
  255. .progress-section .section-label .progress-value {
  256. color: var(--text-primary);
  257. font-weight: 600;
  258. font-variant-numeric: tabular-nums;
  259. }
  260. .progress-bar-track {
  261. width: 100%;
  262. height: 8px;
  263. background: var(--bg-tertiary);
  264. border-radius: 999px;
  265. overflow: hidden;
  266. position: relative;
  267. }
  268. .progress-bar-fill {
  269. height: 100%;
  270. background: linear-gradient(90deg, var(--accent), var(--info));
  271. border-radius: 999px;
  272. transition: width 0.4s ease;
  273. position: relative;
  274. }
  275. .progress-bar-fill::after {
  276. content: '';
  277. position: absolute;
  278. inset: 0;
  279. background: linear-gradient(
  280. 90deg,
  281. transparent,
  282. rgba(255, 255, 255, 0.3),
  283. transparent
  284. );
  285. animation: shimmer 1.6s infinite;
  286. }
  287. .progress-bar-fill.idle::after {
  288. display: none;
  289. }
  290. @keyframes shimmer {
  291. 0% { transform: translateX(-100%); }
  292. 100% { transform: translateX(100%); }
  293. }
  294. /* ====================== 步骤时间线 ====================== */
  295. .timeline {
  296. display: flex;
  297. flex-direction: column;
  298. gap: 4px;
  299. position: relative;
  300. }
  301. .timeline-step {
  302. display: flex;
  303. gap: 12px;
  304. padding: 8px 4px;
  305. border-radius: var(--radius-sm);
  306. transition: background 0.15s;
  307. position: relative;
  308. }
  309. .timeline-step:hover {
  310. background: rgba(255, 255, 255, 0.02);
  311. }
  312. .timeline-step.active {
  313. background: var(--accent-soft);
  314. }
  315. .timeline-step .step-marker {
  316. position: relative;
  317. flex-shrink: 0;
  318. width: 28px;
  319. display: flex;
  320. flex-direction: column;
  321. align-items: center;
  322. }
  323. .timeline-step .step-icon {
  324. width: 24px;
  325. height: 24px;
  326. border-radius: 50%;
  327. display: flex;
  328. align-items: center;
  329. justify-content: center;
  330. font-size: 12px;
  331. font-weight: 600;
  332. border: 2px solid var(--border-strong);
  333. background: var(--bg-primary);
  334. color: var(--text-muted);
  335. flex-shrink: 0;
  336. z-index: 1;
  337. }
  338. .timeline-step .step-line {
  339. width: 2px;
  340. flex: 1;
  341. background: var(--border-color);
  342. margin-top: 2px;
  343. min-height: 8px;
  344. }
  345. .timeline-step:last-child .step-line {
  346. display: none;
  347. }
  348. .timeline-step .step-icon.pending {
  349. color: var(--text-muted);
  350. }
  351. .timeline-step .step-icon.running {
  352. border-color: var(--accent);
  353. color: var(--accent);
  354. background: var(--accent-soft);
  355. }
  356. .timeline-step .step-icon.done {
  357. border-color: var(--success);
  358. background: var(--success);
  359. color: white;
  360. }
  361. .timeline-step .step-icon.failed {
  362. border-color: var(--danger);
  363. background: var(--danger);
  364. color: white;
  365. }
  366. .timeline-step .step-icon.degraded {
  367. border-color: var(--warning);
  368. background: var(--warning);
  369. color: white;
  370. }
  371. .timeline-step .step-icon.cached {
  372. border-color: var(--info);
  373. background: var(--info-soft);
  374. color: var(--info);
  375. }
  376. .timeline-step .step-icon.running::before {
  377. content: '';
  378. position: absolute;
  379. width: 24px;
  380. height: 24px;
  381. border-radius: 50%;
  382. border: 2px solid var(--accent);
  383. opacity: 0.6;
  384. animation: pulse 1.4s ease-out infinite;
  385. }
  386. @keyframes pulse {
  387. 0% { transform: scale(1); opacity: 0.6; }
  388. 100% { transform: scale(1.8); opacity: 0; }
  389. }
  390. .timeline-step .step-body {
  391. flex: 1;
  392. min-width: 0;
  393. padding-top: 2px;
  394. }
  395. .timeline-step .step-header {
  396. display: flex;
  397. align-items: center;
  398. justify-content: space-between;
  399. gap: 8px;
  400. }
  401. .timeline-step .step-name {
  402. font-size: 13px;
  403. font-weight: 500;
  404. color: var(--text-secondary);
  405. }
  406. .timeline-step.active .step-name {
  407. color: var(--text-primary);
  408. }
  409. .timeline-step .step-status-tag {
  410. font-size: 10px;
  411. padding: 2px 6px;
  412. border-radius: 4px;
  413. text-transform: uppercase;
  414. letter-spacing: 0.4px;
  415. font-weight: 600;
  416. flex-shrink: 0;
  417. }
  418. .step-status-tag.pending { color: var(--text-muted); background: var(--bg-tertiary); }
  419. .step-status-tag.running { color: var(--accent); background: var(--accent-soft); }
  420. .step-status-tag.done { color: var(--success); background: var(--success-soft); }
  421. .step-status-tag.failed { color: var(--danger); background: var(--danger-soft); }
  422. .step-status-tag.degraded { color: var(--warning); background: var(--warning-soft); }
  423. .step-status-tag.cached { color: var(--info); background: var(--info-soft); }
  424. .timeline-step .step-desc {
  425. font-size: 11px;
  426. color: var(--text-muted);
  427. margin: 2px 0 0;
  428. }
  429. .timeline-step .step-message {
  430. font-size: 12px;
  431. color: var(--text-secondary);
  432. margin-top: 4px;
  433. word-break: break-word;
  434. background: var(--bg-primary);
  435. padding: 6px 8px;
  436. border-radius: var(--radius-sm);
  437. border-left: 2px solid var(--border-strong);
  438. }
  439. .timeline-step .step-message.failed { border-left-color: var(--danger); }
  440. .timeline-step .step-message.degraded { border-left-color: var(--warning); }
  441. .timeline-step .step-message.done { border-left-color: var(--success); }
  442. .timeline-step .step-message.running { border-left-color: var(--accent); }
  443. .timeline-step .step-message.cached { border-left-color: var(--info); }
  444. /* ====================== Tab 切换 ====================== */
  445. .tabs {
  446. display: flex;
  447. gap: 4px;
  448. border-bottom: 1px solid var(--border-color);
  449. margin-bottom: 20px;
  450. flex-shrink: 0;
  451. }
  452. .tab {
  453. padding: 10px 16px;
  454. background: transparent;
  455. color: var(--text-muted);
  456. font-size: 13px;
  457. font-weight: 500;
  458. border-bottom: 2px solid transparent;
  459. margin-bottom: -1px;
  460. transition: color 0.15s, border-color 0.15s;
  461. }
  462. .tab:hover {
  463. color: var(--text-secondary);
  464. }
  465. .tab.active {
  466. color: var(--accent);
  467. border-bottom-color: var(--accent);
  468. }
  469. .tab .badge {
  470. display: inline-block;
  471. margin-left: 6px;
  472. padding: 1px 6px;
  473. background: var(--bg-tertiary);
  474. color: var(--text-muted);
  475. border-radius: 999px;
  476. font-size: 10px;
  477. font-weight: 600;
  478. }
  479. .tab.active .badge {
  480. background: var(--accent-soft);
  481. color: var(--accent);
  482. }
  483. /* ====================== 报告区 ====================== */
  484. .report-container {
  485. background: var(--bg-elevated);
  486. border: 1px solid var(--border-color);
  487. border-radius: var(--radius-md);
  488. padding: 32px 40px;
  489. min-height: 100%;
  490. overflow-y: auto;
  491. }
  492. .report-empty {
  493. display: flex;
  494. flex-direction: column;
  495. align-items: center;
  496. justify-content: center;
  497. height: 100%;
  498. min-height: 300px;
  499. color: var(--text-muted);
  500. text-align: center;
  501. gap: 12px;
  502. }
  503. .report-empty .empty-icon {
  504. width: 64px;
  505. height: 64px;
  506. border-radius: 50%;
  507. background: var(--bg-tertiary);
  508. display: flex;
  509. align-items: center;
  510. justify-content: center;
  511. font-size: 28px;
  512. color: var(--text-muted);
  513. margin-bottom: 8px;
  514. }
  515. .report-empty .empty-title {
  516. font-size: 15px;
  517. color: var(--text-secondary);
  518. font-weight: 500;
  519. }
  520. .report-empty .empty-desc {
  521. font-size: 13px;
  522. max-width: 360px;
  523. }
  524. /* ====================== Markdown 样式 ====================== */
  525. .markdown-body {
  526. color: var(--text-primary);
  527. font-size: 14px;
  528. line-height: 1.75;
  529. }
  530. .markdown-body h1,
  531. .markdown-body h2,
  532. .markdown-body h3,
  533. .markdown-body h4 {
  534. color: var(--text-primary);
  535. font-weight: 600;
  536. margin: 24px 0 12px;
  537. line-height: 1.3;
  538. }
  539. .markdown-body h1 {
  540. font-size: 24px;
  541. padding-bottom: 8px;
  542. border-bottom: 1px solid var(--border-color);
  543. }
  544. .markdown-body h2 {
  545. font-size: 20px;
  546. padding-bottom: 6px;
  547. border-bottom: 1px solid var(--border-color);
  548. }
  549. .markdown-body h3 { font-size: 17px; }
  550. .markdown-body h4 { font-size: 15px; color: var(--text-secondary); }
  551. .markdown-body p {
  552. margin: 0 0 14px;
  553. }
  554. .markdown-body a {
  555. color: var(--accent);
  556. text-decoration: none;
  557. }
  558. .markdown-body a:hover {
  559. text-decoration: underline;
  560. }
  561. .markdown-body ul,
  562. .markdown-body ol {
  563. margin: 0 0 14px;
  564. padding-left: 24px;
  565. }
  566. .markdown-body li {
  567. margin: 4px 0;
  568. }
  569. .markdown-body blockquote {
  570. margin: 14px 0;
  571. padding: 8px 16px;
  572. border-left: 4px solid var(--accent);
  573. background: var(--accent-soft);
  574. color: var(--text-secondary);
  575. border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  576. }
  577. .markdown-body code {
  578. background: var(--bg-tertiary);
  579. color: var(--info);
  580. padding: 2px 6px;
  581. border-radius: 4px;
  582. font-size: 13px;
  583. font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  584. }
  585. .markdown-body pre {
  586. background: var(--bg-primary);
  587. border: 1px solid var(--border-color);
  588. border-radius: var(--radius-sm);
  589. padding: 14px 16px;
  590. overflow-x: auto;
  591. margin: 14px 0;
  592. }
  593. .markdown-body pre code {
  594. background: transparent;
  595. color: var(--text-primary);
  596. padding: 0;
  597. font-size: 13px;
  598. }
  599. .markdown-body table {
  600. width: 100%;
  601. border-collapse: collapse;
  602. margin: 14px 0;
  603. font-size: 13px;
  604. }
  605. .markdown-body th,
  606. .markdown-body td {
  607. border: 1px solid var(--border-color);
  608. padding: 8px 12px;
  609. text-align: left;
  610. }
  611. .markdown-body th {
  612. background: var(--bg-tertiary);
  613. font-weight: 600;
  614. color: var(--text-primary);
  615. }
  616. .markdown-body tr:nth-child(even) td {
  617. background: rgba(255, 255, 255, 0.015);
  618. }
  619. .markdown-body hr {
  620. border: none;
  621. border-top: 1px solid var(--border-color);
  622. margin: 20px 0;
  623. }
  624. .markdown-body strong {
  625. color: var(--text-primary);
  626. font-weight: 600;
  627. }
  628. /* ====================== 评估面板 ====================== */
  629. .eval-panel {
  630. display: grid;
  631. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  632. gap: 16px;
  633. margin-bottom: 24px;
  634. }
  635. .metric-card {
  636. background: var(--bg-elevated);
  637. border: 1px solid var(--border-color);
  638. border-radius: var(--radius-md);
  639. padding: 16px;
  640. display: flex;
  641. flex-direction: column;
  642. gap: 6px;
  643. }
  644. .metric-card .metric-label {
  645. font-size: 12px;
  646. color: var(--text-muted);
  647. text-transform: uppercase;
  648. letter-spacing: 0.5px;
  649. }
  650. .metric-card .metric-value {
  651. font-size: 26px;
  652. font-weight: 700;
  653. color: var(--text-primary);
  654. font-variant-numeric: tabular-nums;
  655. line-height: 1.1;
  656. }
  657. .metric-card .metric-value.success { color: var(--success); }
  658. .metric-card .metric-value.warning { color: var(--warning); }
  659. .metric-card .metric-value.danger { color: var(--danger); }
  660. .metric-card .metric-sub {
  661. font-size: 11px;
  662. color: var(--text-muted);
  663. }
  664. .metric-card .metric-bar {
  665. margin-top: 6px;
  666. height: 6px;
  667. background: var(--bg-tertiary);
  668. border-radius: 999px;
  669. overflow: hidden;
  670. }
  671. .metric-card .metric-bar-fill {
  672. height: 100%;
  673. border-radius: 999px;
  674. transition: width 0.5s ease;
  675. }
  676. .metric-bar-fill.success { background: var(--success); }
  677. .metric-bar-fill.warning { background: var(--warning); }
  678. .metric-bar-fill.danger { background: var(--danger); }
  679. /* 三维评分条形图 */
  680. .score-section {
  681. background: var(--bg-elevated);
  682. border: 1px solid var(--border-color);
  683. border-radius: var(--radius-md);
  684. padding: 20px;
  685. margin-bottom: 24px;
  686. }
  687. .score-section .section-title {
  688. font-size: 14px;
  689. font-weight: 600;
  690. color: var(--text-primary);
  691. margin: 0 0 16px;
  692. }
  693. .score-item {
  694. margin-bottom: 14px;
  695. }
  696. .score-item:last-child { margin-bottom: 0; }
  697. .score-item .score-header {
  698. display: flex;
  699. justify-content: space-between;
  700. align-items: baseline;
  701. margin-bottom: 6px;
  702. }
  703. .score-item .score-name {
  704. font-size: 13px;
  705. color: var(--text-secondary);
  706. font-weight: 500;
  707. }
  708. .score-item .score-num {
  709. font-size: 13px;
  710. color: var(--text-primary);
  711. font-weight: 600;
  712. font-variant-numeric: tabular-nums;
  713. }
  714. .score-item .score-track {
  715. height: 8px;
  716. background: var(--bg-tertiary);
  717. border-radius: 999px;
  718. overflow: hidden;
  719. }
  720. .score-item .score-fill {
  721. height: 100%;
  722. border-radius: 999px;
  723. transition: width 0.6s ease;
  724. }
  725. .score-fill.novelty { background: var(--score-novelty); }
  726. .score-fill.feasibility { background: var(--score-feasibility); }
  727. .score-fill.significance { background: var(--score-significance); }
  728. /* 工具调用列表 */
  729. .tool-list {
  730. background: var(--bg-elevated);
  731. border: 1px solid var(--border-color);
  732. border-radius: var(--radius-md);
  733. padding: 20px;
  734. }
  735. .tool-list .section-title {
  736. font-size: 14px;
  737. font-weight: 600;
  738. color: var(--text-primary);
  739. margin: 0 0 12px;
  740. }
  741. .tool-row {
  742. display: grid;
  743. grid-template-columns: 1.5fr 2fr 0.8fr 0.8fr;
  744. gap: 12px;
  745. padding: 8px 0;
  746. border-bottom: 1px solid var(--border-color);
  747. font-size: 12px;
  748. align-items: center;
  749. }
  750. .tool-row:last-child { border-bottom: none; }
  751. .tool-row .tool-name {
  752. font-weight: 500;
  753. color: var(--text-primary);
  754. font-family: 'SFMono-Regular', Consolas, monospace;
  755. }
  756. .tool-row .tool-args {
  757. color: var(--text-muted);
  758. font-family: 'SFMono-Regular', Consolas, monospace;
  759. font-size: 11px;
  760. overflow: hidden;
  761. text-overflow: ellipsis;
  762. white-space: nowrap;
  763. }
  764. .tool-row .tool-status {
  765. font-size: 11px;
  766. font-weight: 600;
  767. padding: 2px 8px;
  768. border-radius: 4px;
  769. display: inline-block;
  770. text-align: center;
  771. }
  772. .tool-status.ok { color: var(--success); background: var(--success-soft); }
  773. .tool-status.fail { color: var(--danger); background: var(--danger-soft); }
  774. .tool-row .tool-duration {
  775. color: var(--text-muted);
  776. font-variant-numeric: tabular-nums;
  777. text-align: right;
  778. }
  779. /* ====================== 错误提示 ====================== */
  780. .error-banner {
  781. background: var(--danger-soft);
  782. border: 1px solid var(--danger);
  783. border-radius: var(--radius-md);
  784. padding: 12px 16px;
  785. margin-bottom: 16px;
  786. display: flex;
  787. align-items: flex-start;
  788. gap: 12px;
  789. }
  790. .error-banner .error-icon {
  791. color: var(--danger);
  792. font-weight: 700;
  793. flex-shrink: 0;
  794. }
  795. .error-banner .error-text {
  796. flex: 1;
  797. color: var(--text-primary);
  798. font-size: 13px;
  799. word-break: break-word;
  800. }
  801. .error-banner .error-actions {
  802. display: flex;
  803. gap: 8px;
  804. flex-shrink: 0;
  805. }
  806. /* ====================== 加载与状态 ====================== */
  807. .loading-overlay {
  808. display: flex;
  809. align-items: center;
  810. gap: 8px;
  811. color: var(--text-muted);
  812. font-size: 13px;
  813. }
  814. .spinner {
  815. width: 14px;
  816. height: 14px;
  817. border: 2px solid var(--border-strong);
  818. border-top-color: var(--accent);
  819. border-radius: 50%;
  820. animation: spin 0.8s linear infinite;
  821. }
  822. @keyframes spin {
  823. to { transform: rotate(360deg); }
  824. }
  825. .section-divider {
  826. font-size: 11px;
  827. font-weight: 600;
  828. color: var(--text-muted);
  829. text-transform: uppercase;
  830. letter-spacing: 0.6px;
  831. margin: 0 0 8px;
  832. }
  833. /* ====================== 输入模式切换 ====================== */
  834. .mode-toggle {
  835. display: flex;
  836. gap: 4px;
  837. background: var(--bg-primary);
  838. border: 1px solid var(--border-strong);
  839. border-radius: var(--radius-sm);
  840. padding: 3px;
  841. }
  842. .mode-btn {
  843. flex: 1;
  844. padding: 7px 10px;
  845. background: transparent;
  846. color: var(--text-muted);
  847. font-size: 12px;
  848. font-weight: 500;
  849. border-radius: 4px;
  850. transition: background 0.15s, color 0.15s;
  851. }
  852. .mode-btn:hover:not(:disabled) {
  853. color: var(--text-secondary);
  854. }
  855. .mode-btn.active {
  856. background: var(--accent);
  857. color: white;
  858. }
  859. .mode-btn:disabled {
  860. cursor: not-allowed;
  861. opacity: 0.5;
  862. }
  863. /* ====================== 研究方向输入 ====================== */
  864. .research-direction {
  865. display: flex;
  866. flex-direction: column;
  867. gap: 6px;
  868. }
  869. .research-direction .research-label {
  870. font-size: 12px;
  871. color: var(--text-secondary);
  872. font-weight: 500;
  873. }
  874. /* ====================== 论文库组件 ====================== */
  875. .paper-library {
  876. display: flex;
  877. flex-direction: column;
  878. gap: 10px;
  879. }
  880. .upload-area {
  881. display: flex;
  882. }
  883. .btn-upload {
  884. flex: 1;
  885. padding: 10px;
  886. background: var(--bg-primary);
  887. color: var(--accent);
  888. border: 1px dashed var(--border-strong);
  889. border-radius: var(--radius-sm);
  890. font-size: 13px;
  891. font-weight: 500;
  892. transition: border-color 0.15s, background 0.15s;
  893. }
  894. .btn-upload:hover:not(:disabled) {
  895. border-color: var(--accent);
  896. background: var(--accent-soft);
  897. }
  898. .btn-upload:disabled {
  899. cursor: not-allowed;
  900. opacity: 0.5;
  901. }
  902. .paper-list {
  903. display: flex;
  904. flex-direction: column;
  905. gap: 6px;
  906. max-height: 320px;
  907. overflow-y: auto;
  908. }
  909. .empty-hint {
  910. font-size: 12px;
  911. color: var(--text-muted);
  912. text-align: center;
  913. padding: 16px 8px;
  914. margin: 0;
  915. }
  916. .paper-item {
  917. display: flex;
  918. align-items: flex-start;
  919. gap: 8px;
  920. padding: 8px 10px;
  921. background: var(--bg-primary);
  922. border: 1px solid var(--border-color);
  923. border-radius: var(--radius-sm);
  924. transition: border-color 0.15s, background 0.15s;
  925. }
  926. .paper-item:hover:not(.disabled) {
  927. border-color: var(--border-strong);
  928. }
  929. .paper-item.selected {
  930. border-color: var(--accent);
  931. background: var(--accent-soft);
  932. }
  933. .paper-item.disabled {
  934. opacity: 0.6;
  935. }
  936. .paper-checkbox {
  937. flex-shrink: 0;
  938. padding-top: 2px;
  939. }
  940. .paper-checkbox input[type="checkbox"] {
  941. width: 14px;
  942. height: 14px;
  943. accent-color: var(--accent);
  944. cursor: pointer;
  945. }
  946. .paper-info {
  947. flex: 1;
  948. min-width: 0;
  949. display: flex;
  950. flex-direction: column;
  951. gap: 3px;
  952. }
  953. .paper-title {
  954. font-size: 12px;
  955. font-weight: 500;
  956. color: var(--text-primary);
  957. white-space: nowrap;
  958. overflow: hidden;
  959. text-overflow: ellipsis;
  960. }
  961. .paper-filename {
  962. font-size: 11px;
  963. color: var(--text-muted);
  964. white-space: nowrap;
  965. overflow: hidden;
  966. text-overflow: ellipsis;
  967. font-family: 'SFMono-Regular', Consolas, monospace;
  968. }
  969. .paper-status {
  970. display: flex;
  971. flex-wrap: wrap;
  972. gap: 4px;
  973. margin-top: 2px;
  974. }
  975. .status-badge {
  976. display: inline-flex;
  977. align-items: center;
  978. gap: 3px;
  979. padding: 1px 6px;
  980. border-radius: 4px;
  981. font-size: 10px;
  982. font-weight: 500;
  983. }
  984. .status-badge.status-done { color: var(--success); background: var(--success-soft); }
  985. .status-badge.status-failed { color: var(--danger); background: var(--danger-soft); }
  986. .status-badge.status-pending { color: var(--text-muted); background: var(--bg-tertiary); }
  987. .status-badge.status-cached { color: var(--info); background: var(--info-soft); }
  988. .btn-icon {
  989. flex-shrink: 0;
  990. width: 22px;
  991. height: 22px;
  992. border-radius: 4px;
  993. background: transparent;
  994. color: var(--text-muted);
  995. font-size: 12px;
  996. display: flex;
  997. align-items: center;
  998. justify-content: center;
  999. transition: background 0.15s, color 0.15s;
  1000. }
  1001. .btn-icon:hover:not(:disabled) {
  1002. background: var(--danger-soft);
  1003. color: var(--danger);
  1004. }
  1005. .btn-icon:disabled {
  1006. cursor: not-allowed;
  1007. opacity: 0.4;
  1008. }
  1009. .selected-count {
  1010. font-size: 11px;
  1011. color: var(--accent);
  1012. font-weight: 500;
  1013. text-align: right;
  1014. }
  1015. /* ====================== 响应式 ====================== */
  1016. @media (max-width: 960px) {
  1017. .app-body {
  1018. flex-direction: column;
  1019. }
  1020. .sidebar {
  1021. width: 100%;
  1022. border-right: none;
  1023. border-bottom: 1px solid var(--border-color);
  1024. max-height: 50vh;
  1025. }
  1026. .main-content {
  1027. padding: 16px;
  1028. }
  1029. .report-container {
  1030. padding: 20px;
  1031. }
  1032. .app-header {
  1033. padding: 0 16px;
  1034. }
  1035. .app-header .brand-subtitle {
  1036. display: none;
  1037. }
  1038. }
  1039. @media (max-width: 600px) {
  1040. .eval-panel {
  1041. grid-template-columns: 1fr;
  1042. }
  1043. .tool-row {
  1044. grid-template-columns: 1fr;
  1045. gap: 4px;
  1046. }
  1047. .tool-row .tool-duration,
  1048. .tool-row .tool-status {
  1049. text-align: left;
  1050. }
  1051. }
  1052. /* 滚动条美化 */
  1053. ::-webkit-scrollbar {
  1054. width: 8px;
  1055. height: 8px;
  1056. }
  1057. ::-webkit-scrollbar-track {
  1058. background: var(--bg-primary);
  1059. }
  1060. ::-webkit-scrollbar-thumb {
  1061. background: var(--border-strong);
  1062. border-radius: 4px;
  1063. }
  1064. ::-webkit-scrollbar-thumb:hover {
  1065. background: var(--text-muted);
  1066. }