dark-theme-overrides.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. /* ═══════════════════════════════════════════════════════════
  2. 暗色主题全局覆盖规则
  3. 使用 !important 覆盖 scoped 样式中的硬编码颜色
  4. ═══════════════════════════════════════════════════════════ */
  5. /* ─── 全局基础 ─── */
  6. [data-theme="dark"] body {
  7. background: #1a1a2e !important;
  8. color: #e0e0e0 !important;
  9. }
  10. [data-theme="dark"] * {
  11. scrollbar-color: #444 #1a1a2e;
  12. }
  13. [data-theme="dark"] ::-webkit-scrollbar-thumb {
  14. background: #444 !important;
  15. }
  16. [data-theme="dark"] ::-webkit-scrollbar-track {
  17. background: #1a1a2e !important;
  18. }
  19. /* ─── Login.vue ─── */
  20. [data-theme="dark"] .login-container {
  21. background: #1a1a2e !important;
  22. }
  23. [data-theme="dark"] .login-card {
  24. background: #16213e !important;
  25. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  26. }
  27. [data-theme="dark"] .login-card h1 {
  28. color: #e0e0e0 !important;
  29. }
  30. [data-theme="dark"] .login-card p,
  31. [data-theme="dark"] .input-label {
  32. color: #b0b0b0 !important;
  33. }
  34. [data-theme="dark"] .username-input {
  35. background: #0f3460 !important;
  36. border-color: #2a2a4a !important;
  37. color: #e0e0e0 !important;
  38. }
  39. [data-theme="dark"] .username-input::placeholder {
  40. color: #808080 !important;
  41. }
  42. [data-theme="dark"] .login-footer p {
  43. color: #808080 !important;
  44. }
  45. /* ─── Chat.vue ─── */
  46. [data-theme="dark"] .chat-section {
  47. background: #1a1a2e !important;
  48. }
  49. [data-theme="dark"] .chat-header {
  50. background: #16213e !important;
  51. border-bottom-color: #2a2a4a !important;
  52. }
  53. [data-theme="dark"] .chat-header .subtitle {
  54. color: #b0b0b0 !important;
  55. }
  56. [data-theme="dark"] .welcome-card {
  57. background: linear-gradient(135deg, #16213e 0%, #0f3460 100%) !important;
  58. }
  59. [data-theme="dark"] .welcome-card h3 {
  60. color: #e0e0e0 !important;
  61. }
  62. [data-theme="dark"] .welcome-card p {
  63. color: #b0b0b0 !important;
  64. }
  65. [data-theme="dark"] .feature-item {
  66. background: #16213e !important;
  67. color: #e0e0e0 !important;
  68. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  69. }
  70. [data-theme="dark"] .message.assistant .bubble {
  71. background: #16213e !important;
  72. color: #e0e0e0 !important;
  73. }
  74. [data-theme="dark"] .input-area {
  75. background: #16213e !important;
  76. border-top-color: #2a2a4a !important;
  77. }
  78. [data-theme="dark"] .input-wrapper {
  79. background: #0f3460 !important;
  80. }
  81. [data-theme="dark"] .input-wrapper:focus-within {
  82. background: #0f3460 !important;
  83. }
  84. [data-theme="dark"] .input-wrapper textarea {
  85. color: #e0e0e0 !important;
  86. }
  87. [data-theme="dark"] .input-wrapper textarea::placeholder {
  88. color: #808080 !important;
  89. }
  90. [data-theme="dark"] .input-hint {
  91. color: #808080 !important;
  92. }
  93. [data-theme="dark"] .code-section {
  94. background: #16213e !important;
  95. border-left-color: #2a2a4a !important;
  96. }
  97. /* ─── Learning.vue ─── */
  98. [data-theme="dark"] .learning-view {
  99. background: #1a1a2e !important;
  100. }
  101. [data-theme="dark"] .learning-view .view-header {
  102. background: #16213e !important;
  103. border-bottom-color: #2a2a4a !important;
  104. }
  105. [data-theme="dark"] .learning-view .view-header h1 {
  106. color: #e0e0e0 !important;
  107. }
  108. [data-theme="dark"] .learning-view .view-header p {
  109. color: #b0b0b0 !important;
  110. }
  111. [data-theme="dark"] .path-card {
  112. background: #16213e !important;
  113. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  114. }
  115. [data-theme="dark"] .path-card:hover {
  116. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  117. }
  118. [data-theme="dark"] .path-card .path-title {
  119. color: #e0e0e0 !important;
  120. }
  121. [data-theme="dark"] .path-card .path-desc {
  122. color: #b0b0b0 !important;
  123. }
  124. [data-theme="dark"] .path-card .stat {
  125. color: #b0b0b0 !important;
  126. }
  127. [data-theme="dark"] .module-card {
  128. background: #16213e !important;
  129. border-color: #2a2a4a !important;
  130. }
  131. [data-theme="dark"] .module-card .module-title {
  132. color: #e0e0e0 !important;
  133. }
  134. [data-theme="dark"] .module-card .module-desc {
  135. color: #b0b0b0 !important;
  136. }
  137. [data-theme="dark"] .lesson-item {
  138. border-bottom-color: #2a2a4a !important;
  139. }
  140. [data-theme="dark"] .lesson-item .lesson-title {
  141. color: #e0e0e0 !important;
  142. }
  143. [data-theme="dark"] .lesson-item .lesson-meta {
  144. color: #b0b0b0 !important;
  145. }
  146. [data-theme="dark"] .lesson-modal {
  147. background: #16213e !important;
  148. }
  149. [data-theme="dark"] .modal-header {
  150. border-bottom-color: #2a2a4a !important;
  151. }
  152. [data-theme="dark"] .modal-header .modal-title-area h2 {
  153. color: #e0e0e0 !important;
  154. }
  155. [data-theme="dark"] .modal-header .modal-module {
  156. color: #b0b0b0 !important;
  157. }
  158. [data-theme="dark"] .modal-body .lesson-description {
  159. color: #b0b0b0 !important;
  160. }
  161. [data-theme="dark"] .modal-body .detail-item .detail-label {
  162. color: #808080 !important;
  163. }
  164. [data-theme="dark"] .modal-body .detail-item .detail-value {
  165. color: #e0e0e0 !important;
  166. }
  167. [data-theme="dark"] .modal-body .code-placeholder {
  168. background: #0f3460 !important;
  169. }
  170. [data-theme="dark"] .coach-panel {
  171. background: #16213e !important;
  172. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  173. }
  174. [data-theme="dark"] .coach-panel .coach-greeting {
  175. color: #e0e0e0 !important;
  176. }
  177. [data-theme="dark"] .coach-panel .rec-title {
  178. color: #e0e0e0 !important;
  179. }
  180. [data-theme="dark"] .coach-panel .rec-desc {
  181. color: #b0b0b0 !important;
  182. }
  183. [data-theme="dark"] .coach-panel .coach-encouragement {
  184. color: #b0b0b0 !important;
  185. }
  186. [data-theme="dark"] .assessment-card {
  187. background: #16213e !important;
  188. }
  189. [data-theme="dark"] .assessment-prompt {
  190. background: #0f3460 !important;
  191. }
  192. /* ─── Assessment.vue ─── */
  193. [data-theme="dark"] .assessment-view {
  194. background: #1a1a2e !important;
  195. }
  196. [data-theme="dark"] .assessment-header {
  197. background: #16213e !important;
  198. border-bottom-color: #2a2a4a !important;
  199. }
  200. [data-theme="dark"] .assessment-header .header-left h1 {
  201. color: #e0e0e0 !important;
  202. }
  203. [data-theme="dark"] .assessment-header .path-label {
  204. color: #7c8cf0 !important;
  205. }
  206. [data-theme="dark"] .assessment-header .question-count {
  207. color: #b0b0b0 !important;
  208. }
  209. [data-theme="dark"] .assessment-header .progress-bar {
  210. background: #2a2a4a !important;
  211. }
  212. [data-theme="dark"] .question-card {
  213. background: #16213e !important;
  214. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  215. }
  216. [data-theme="dark"] .question-content {
  217. color: #e0e0e0 !important;
  218. }
  219. [data-theme="dark"] .code-block {
  220. background: #0f3460 !important;
  221. color: #e0e0e0 !important;
  222. border-color: #2a2a4a !important;
  223. }
  224. [data-theme="dark"] .option-item {
  225. background: #0f3460 !important;
  226. border-color: #2a2a4a !important;
  227. color: #e0e0e0 !important;
  228. }
  229. [data-theme="dark"] .option-item:hover {
  230. background: #16213e !important;
  231. border-color: #7c8cf0 !important;
  232. }
  233. [data-theme="dark"] .option-item.selected {
  234. background: #16213e !important;
  235. border-color: #7c8cf0 !important;
  236. }
  237. [data-theme="dark"] .option-item.correct {
  238. background: rgba(82, 196, 26, 0.15) !important;
  239. border-color: #52c41a !important;
  240. }
  241. [data-theme="dark"] .option-item.incorrect {
  242. background: rgba(255, 77, 79, 0.15) !important;
  243. border-color: #ff4d4f !important;
  244. }
  245. [data-theme="dark"] .explanation-box {
  246. background: #0f3460 !important;
  247. }
  248. [data-theme="dark"] .explanation-title {
  249. color: #e0e0e0 !important;
  250. }
  251. [data-theme="dark"] .explanation-text {
  252. color: #b0b0b0 !important;
  253. }
  254. [data-theme="dark"] .result-card {
  255. background: #16213e !important;
  256. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  257. }
  258. [data-theme="dark"] .result-header h2 {
  259. color: #e0e0e0 !important;
  260. }
  261. [data-theme="dark"] .score-circle {
  262. border-color: #2a2a4a !important;
  263. }
  264. [data-theme="dark"] .score-value {
  265. color: #e0e0e0 !important;
  266. }
  267. [data-theme="dark"] .level-text {
  268. color: #e0e0e0 !important;
  269. }
  270. [data-theme="dark"] .category-name {
  271. color: #e0e0e0 !important;
  272. }
  273. [data-theme="dark"] .category-score {
  274. color: #b0b0b0 !important;
  275. }
  276. [data-theme="dark"] .score-bar {
  277. background: #2a2a4a !important;
  278. }
  279. [data-theme="dark"] .recommendation-box {
  280. background: #0f3460 !important;
  281. }
  282. [data-theme="dark"] .recommendation-box p {
  283. color: #b0b0b0 !important;
  284. }
  285. /* ─── Dashboard.vue ─── */
  286. [data-theme="dark"] .dashboard-view {
  287. background: #1a1a2e !important;
  288. }
  289. [data-theme="dark"] .dashboard-view .view-header {
  290. background: #16213e !important;
  291. border-bottom-color: #2a2a4a !important;
  292. }
  293. [data-theme="dark"] .dashboard-view .view-header h1 {
  294. color: #e0e0e0 !important;
  295. }
  296. [data-theme="dark"] .dashboard-view .view-header p {
  297. color: #b0b0b0 !important;
  298. }
  299. [data-theme="dark"] .path-selector {
  300. background: #0f3460 !important;
  301. }
  302. [data-theme="dark"] .path-tab {
  303. color: #b0b0b0 !important;
  304. }
  305. [data-theme="dark"] .path-tab.active {
  306. background: #16213e !important;
  307. color: #e0e0e0 !important;
  308. }
  309. [data-theme="dark"] .summary-card {
  310. background: #16213e !important;
  311. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  312. }
  313. [data-theme="dark"] .summary-card .card-value {
  314. color: #e0e0e0 !important;
  315. }
  316. [data-theme="dark"] .summary-card .card-label {
  317. color: #b0b0b0 !important;
  318. }
  319. [data-theme="dark"] .chart-card {
  320. background: #16213e !important;
  321. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  322. }
  323. [data-theme="dark"] .chart-header h3 {
  324. color: #e0e0e0 !important;
  325. }
  326. [data-theme="dark"] .empty-chart {
  327. color: #808080 !important;
  328. }
  329. [data-theme="dark"] .recent-card {
  330. background: #16213e !important;
  331. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  332. }
  333. [data-theme="dark"] .recent-card h3 {
  334. color: #e0e0e0 !important;
  335. }
  336. [data-theme="dark"] .history-item {
  337. border-bottom-color: #2a2a4a !important;
  338. }
  339. [data-theme="dark"] .history-info .history-date {
  340. color: #808080 !important;
  341. }
  342. [data-theme="dark"] .history-categories .cat-tag {
  343. background: #0f3460 !important;
  344. color: #b0b0b0 !important;
  345. }
  346. [data-theme="dark"] .empty-history {
  347. color: #808080 !important;
  348. }
  349. /* ─── Orchestration.vue ─── */
  350. [data-theme="dark"] .orchestration-view {
  351. background: #1a1a2e !important;
  352. }
  353. [data-theme="dark"] .orchestration-view .view-header {
  354. background: #16213e !important;
  355. border-bottom-color: #2a2a4a !important;
  356. }
  357. [data-theme="dark"] .orchestration-view .view-header h1 {
  358. color: #e0e0e0 !important;
  359. }
  360. [data-theme="dark"] .orchestration-view .view-header p {
  361. color: #b0b0b0 !important;
  362. }
  363. [data-theme="dark"] .stat-chip {
  364. background: #0f3460 !important;
  365. color: #b0b0b0 !important;
  366. }
  367. [data-theme="dark"] .info-panel {
  368. background: #16213e !important;
  369. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
  370. }
  371. [data-theme="dark"] .info-panel h3 {
  372. color: #e0e0e0 !important;
  373. }
  374. [data-theme="dark"] .agent-item {
  375. background: #0f3460 !important;
  376. border-color: #2a2a4a !important;
  377. }
  378. [data-theme="dark"] .agent-item:hover {
  379. background: #16213e !important;
  380. }
  381. [data-theme="dark"] .agent-item.active {
  382. border-color: #7c8cf0 !important;
  383. }
  384. [data-theme="dark"] .agent-name {
  385. color: #e0e0e0 !important;
  386. }
  387. [data-theme="dark"] .agent-desc {
  388. color: #b0b0b0 !important;
  389. }
  390. [data-theme="dark"] .meta-item {
  391. color: #808080 !important;
  392. }
  393. /* ─── Vue Flow (Orchestration) ─── */
  394. [data-theme="dark"] .vue-flow {
  395. background: #1a1a2e !important;
  396. }
  397. [data-theme="dark"] .vue-flow__edge-path {
  398. stroke: #4a4a6a !important;
  399. }
  400. [data-theme="dark"] .vue-flow__node {
  401. background: #16213e !important;
  402. border-color: #2a2a4a !important;
  403. }
  404. /* ─── 通用按钮 ─── */
  405. [data-theme="dark"] .btn-primary {
  406. background: linear-gradient(135deg, #7c8cf0 0%, #9a6dd7 100%) !important;
  407. }
  408. [data-theme="dark"] .btn-outline {
  409. border-color: #4a4a6a !important;
  410. color: #b0b0b0 !important;
  411. }
  412. [data-theme="dark"] .btn-outline:hover {
  413. border-color: #7c8cf0 !important;
  414. color: #e0e0e0 !important;
  415. }
  416. /* ─── 进度条 ─── */
  417. [data-theme="dark"] .progress-bar {
  418. background: #2a2a4a !important;
  419. }
  420. [data-theme="dark"] .progress-text {
  421. color: #b0b0b0 !important;
  422. }
  423. /* ─── 徽章/标签 ─── */
  424. [data-theme="dark"] .status-badge {
  425. background: #0f3460 !important;
  426. color: #b0b0b0 !important;
  427. }
  428. [data-theme="dark"] .category-badge {
  429. background: #0f3460 !important;
  430. color: #7c8cf0 !important;
  431. }
  432. [data-theme="dark"] .difficulty-badge {
  433. background: #0f3460 !important;
  434. }
  435. [data-theme="dark"] .type-badge {
  436. background: #0f3460 !important;
  437. }
  438. [data-theme="dark"] .level-badge {
  439. background: #0f3460 !important;
  440. color: #e0e0e0 !important;
  441. }
  442. /* ─── 模态框覆盖层 ─── */
  443. [data-theme="dark"] .lesson-modal-overlay {
  444. background: rgba(0, 0, 0, 0.7) !important;
  445. }
  446. /* ─── 加载状态 ─── */
  447. [data-theme="dark"] .spinner {
  448. border-color: #2a2a4a !important;
  449. border-top-color: #7c8cf0 !important;
  450. }
  451. [data-theme="dark"] .loading-state p {
  452. color: #b0b0b0 !important;
  453. }
  454. /* ─── AgentConfigPanel ─── */
  455. [data-theme="dark"] .config-overlay {
  456. background: rgba(0, 0, 0, 0.6) !important;
  457. }
  458. [data-theme="dark"] .config-panel {
  459. background: #16213e !important;
  460. box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5) !important;
  461. }
  462. [data-theme="dark"] .panel-body .section-text {
  463. color: #e0e0e0 !important;
  464. }
  465. [data-theme="dark"] .prompt-block {
  466. background: #0f3460 !important;
  467. border-color: #2a2a4a !important;
  468. }
  469. [data-theme="dark"] .prompt-text {
  470. color: #b0b0b0 !important;
  471. }
  472. [data-theme="dark"] .activity-card {
  473. background: #0f3460 !important;
  474. border-color: #2a2a4a !important;
  475. }
  476. [data-theme="dark"] .activity-value {
  477. color: #e0e0e0 !important;
  478. }
  479. [data-theme="dark"] .last-message {
  480. background: #0f3460 !important;
  481. border-color: #2a2a4a !important;
  482. }
  483. [data-theme="dark"] .msg-preview {
  484. color: #b0b0b0 !important;
  485. }
  486. [data-theme="dark"] .panel-footer {
  487. border-top-color: #2a2a4a !important;
  488. }
  489. [data-theme="dark"] .action-btn.secondary {
  490. background: #0f3460 !important;
  491. border-color: #2a2a4a !important;
  492. color: #b0b0b0 !important;
  493. }
  494. [data-theme="dark"] .action-btn.secondary:hover {
  495. background: #16213e !important;
  496. }