style.css 19 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196
  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. line-height: 1.6;
  10. color: #333;
  11. background-color: #f5f7fa;
  12. }
  13. .container {
  14. min-height: 100vh;
  15. display: flex;
  16. flex-direction: column;
  17. }
  18. /* 头部样式 */
  19. .header {
  20. background: #fff;
  21. border-bottom: 1px solid #e1e8ed;
  22. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  23. }
  24. .header-content {
  25. max-width: 1200px;
  26. margin: 0 auto;
  27. padding: 0 20px;
  28. display: flex;
  29. justify-content: space-between;
  30. align-items: center;
  31. height: 60px;
  32. }
  33. .logo {
  34. font-size: 1.5rem;
  35. font-weight: 600;
  36. color: #1a73e8;
  37. }
  38. .nav {
  39. display: flex;
  40. align-items: center;
  41. gap: 20px;
  42. }
  43. .nav-link {
  44. color: #5f6368;
  45. text-decoration: none;
  46. padding: 8px 16px;
  47. border-radius: 4px;
  48. transition: background-color 0.2s;
  49. }
  50. .nav-link:hover {
  51. background-color: #f8f9fa;
  52. color: #1a73e8;
  53. }
  54. .nav-link.logout {
  55. color: #d93025;
  56. }
  57. .user-info {
  58. color: #5f6368;
  59. font-size: 0.9rem;
  60. display: flex;
  61. align-items: center;
  62. gap: 5px;
  63. }
  64. .login-type {
  65. color: #07c160;
  66. font-size: 0.8rem;
  67. font-weight: 500;
  68. }
  69. /* 主内容区域 */
  70. .main {
  71. flex: 1;
  72. max-width: 1200px;
  73. margin: 0 auto;
  74. padding: 20px;
  75. width: 100%;
  76. }
  77. /* 闪现消息 */
  78. .flash-messages {
  79. margin-bottom: 20px;
  80. }
  81. .flash-message {
  82. padding: 12px 16px;
  83. border-radius: 4px;
  84. margin-bottom: 10px;
  85. font-weight: 500;
  86. }
  87. .flash-success {
  88. background-color: #d4edda;
  89. border: 1px solid #c3e6cb;
  90. color: #155724;
  91. }
  92. .flash-error {
  93. background-color: #f8d7da;
  94. border: 1px solid #f5c6cb;
  95. color: #721c24;
  96. }
  97. .flash-info {
  98. background-color: #d1ecf1;
  99. border: 1px solid #bee5eb;
  100. color: #0c5460;
  101. }
  102. /* 登录页面样式 */
  103. .login-container {
  104. display: flex;
  105. justify-content: center;
  106. align-items: center;
  107. min-height: 100vh;
  108. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  109. }
  110. .login-box {
  111. background: #fff;
  112. padding: 40px;
  113. border-radius: 8px;
  114. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  115. width: 100%;
  116. max-width: 400px;
  117. }
  118. .login-title {
  119. text-align: center;
  120. color: #333;
  121. margin-bottom: 8px;
  122. font-size: 1.8rem;
  123. font-weight: 600;
  124. }
  125. .login-subtitle {
  126. text-align: center;
  127. color: #666;
  128. margin-bottom: 30px;
  129. }
  130. .form-group {
  131. margin-bottom: 20px;
  132. }
  133. .form-label {
  134. display: block;
  135. margin-bottom: 5px;
  136. color: #333;
  137. font-weight: 500;
  138. }
  139. .form-input {
  140. width: 100%;
  141. padding: 12px;
  142. border: 1px solid #ddd;
  143. border-radius: 4px;
  144. font-size: 1rem;
  145. transition: border-color 0.2s;
  146. }
  147. .form-input:focus {
  148. outline: none;
  149. border-color: #1a73e8;
  150. box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
  151. }
  152. .login-btn {
  153. width: 100%;
  154. padding: 12px;
  155. background: #1a73e8;
  156. color: #fff;
  157. border: none;
  158. border-radius: 4px;
  159. font-size: 1rem;
  160. font-weight: 500;
  161. cursor: pointer;
  162. transition: background-color 0.2s;
  163. }
  164. .login-btn:hover {
  165. background: #1557b0;
  166. }
  167. /* 分隔线样式 */
  168. .divider {
  169. margin: 30px 0;
  170. text-align: center;
  171. position: relative;
  172. }
  173. .divider:before {
  174. content: '';
  175. position: absolute;
  176. top: 50%;
  177. left: 0;
  178. right: 0;
  179. height: 1px;
  180. background: #e1e8ed;
  181. }
  182. .divider span {
  183. background: #fff;
  184. padding: 0 15px;
  185. color: #666;
  186. font-size: 0.9rem;
  187. }
  188. /* 文件浏览器样式 */
  189. .file-browser {
  190. background: #fff;
  191. border-radius: 8px;
  192. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  193. overflow: hidden;
  194. }
  195. .file-browser-header {
  196. display: flex;
  197. justify-content: space-between;
  198. align-items: center;
  199. padding: 16px 20px;
  200. background: #f8f9fa;
  201. border-bottom: 1px solid #e1e8ed;
  202. }
  203. .breadcrumb {
  204. font-size: 0.9rem;
  205. }
  206. .browser-actions {
  207. display: flex;
  208. gap: 10px;
  209. }
  210. .upload-btn {
  211. background: #28a745;
  212. color: #fff;
  213. border: none;
  214. padding: 8px 16px;
  215. border-radius: 4px;
  216. font-size: 0.9rem;
  217. font-weight: 500;
  218. cursor: pointer;
  219. transition: all 0.2s;
  220. }
  221. .upload-btn:hover {
  222. background: #218838;
  223. }
  224. .create-dir-btn {
  225. background: #007bff;
  226. color: #fff;
  227. border: none;
  228. padding: 8px 16px;
  229. border-radius: 4px;
  230. font-size: 0.9rem;
  231. font-weight: 500;
  232. cursor: pointer;
  233. transition: all 0.2s;
  234. }
  235. .create-dir-btn:hover {
  236. background: #0056b3;
  237. }
  238. .delete-dir-btn {
  239. background: #dc3545;
  240. color: #fff;
  241. border: none;
  242. padding: 8px 16px;
  243. border-radius: 4px;
  244. font-size: 0.9rem;
  245. font-weight: 500;
  246. cursor: pointer;
  247. transition: all 0.2s;
  248. }
  249. .delete-dir-btn:hover {
  250. background: #c82333;
  251. }
  252. .delete-dir-btn:disabled {
  253. background: #6c757d;
  254. cursor: not-allowed;
  255. }
  256. .breadcrumb-item {
  257. color: #5f6368;
  258. }
  259. .breadcrumb-link {
  260. color: #1a73e8;
  261. text-decoration: none;
  262. }
  263. .breadcrumb-link:hover {
  264. text-decoration: underline;
  265. }
  266. .file-list-header {
  267. display: grid;
  268. grid-template-columns: 1fr 120px 180px;
  269. gap: 20px;
  270. padding: 16px 20px;
  271. background: #f8f9fa;
  272. border-bottom: 1px solid #e1e8ed;
  273. font-weight: 600;
  274. color: #5f6368;
  275. }
  276. .file-list-content {
  277. min-height: 400px;
  278. }
  279. .file-item {
  280. display: grid;
  281. grid-template-columns: 1fr 120px 180px;
  282. gap: 20px;
  283. padding: 16px 20px;
  284. border-bottom: 1px solid #f1f3f4;
  285. transition: background-color 0.2s;
  286. cursor: pointer;
  287. }
  288. .file-item:hover {
  289. background-color: #f8f9fa;
  290. }
  291. .file-item-name {
  292. display: flex;
  293. align-items: center;
  294. gap: 8px;
  295. }
  296. .file-icon {
  297. width: 20px;
  298. height: 20px;
  299. display: inline-block;
  300. }
  301. .file-icon.folder {
  302. color: #ffa726;
  303. }
  304. .file-icon.file {
  305. color: #42a5f5;
  306. }
  307. .file-item-size {
  308. color: #5f6368;
  309. font-size: 0.9rem;
  310. }
  311. .file-item-modified {
  312. color: #5f6368;
  313. font-size: 0.9rem;
  314. }
  315. /* 文件详情页面样式 */
  316. .file-detail {
  317. background: #fff;
  318. border-radius: 8px;
  319. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  320. overflow: hidden;
  321. }
  322. .file-detail-header {
  323. padding: 20px;
  324. border-bottom: 1px solid #e1e8ed;
  325. display: flex;
  326. justify-content: space-between;
  327. align-items: center;
  328. }
  329. .file-title {
  330. color: #333;
  331. font-size: 1.5rem;
  332. font-weight: 600;
  333. }
  334. .header-actions {
  335. display: flex;
  336. align-items: center;
  337. gap: 15px;
  338. }
  339. .download-btn {
  340. color: #fff;
  341. background: #28a745;
  342. text-decoration: none;
  343. padding: 8px 16px;
  344. border: 1px solid #28a745;
  345. border-radius: 4px;
  346. transition: all 0.2s;
  347. font-weight: 500;
  348. }
  349. .download-btn:hover {
  350. background: #218838;
  351. border-color: #218838;
  352. }
  353. .download-btn.downloading {
  354. background: #6c757d;
  355. border-color: #6c757d;
  356. cursor: wait;
  357. }
  358. .delete-btn {
  359. color: #fff;
  360. background: #dc3545;
  361. text-decoration: none;
  362. padding: 8px 16px;
  363. border: 1px solid #dc3545;
  364. border-radius: 4px;
  365. transition: all 0.2s;
  366. font-weight: 500;
  367. }
  368. .delete-btn:hover {
  369. background: #c82333;
  370. border-color: #bd2130;
  371. }
  372. .back-btn {
  373. color: #1a73e8;
  374. text-decoration: none;
  375. padding: 8px 16px;
  376. border: 1px solid #1a73e8;
  377. border-radius: 4px;
  378. transition: all 0.2s;
  379. }
  380. .back-btn:hover {
  381. background: #1a73e8;
  382. color: #fff;
  383. }
  384. .file-info {
  385. padding: 20px;
  386. }
  387. .info-grid {
  388. display: grid;
  389. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  390. gap: 20px;
  391. margin-bottom: 20px;
  392. }
  393. .info-item {
  394. display: flex;
  395. flex-direction: column;
  396. gap: 4px;
  397. }
  398. .info-label {
  399. font-weight: 600;
  400. color: #5f6368;
  401. font-size: 0.9rem;
  402. }
  403. .info-value {
  404. color: #333;
  405. word-break: break-all;
  406. }
  407. .status-badge {
  408. display: inline-block;
  409. padding: 4px 8px;
  410. border-radius: 12px;
  411. font-size: 0.8rem;
  412. font-weight: 500;
  413. }
  414. .status-indexed {
  415. background: #d4edda;
  416. color: #155724;
  417. }
  418. .status-not-indexed {
  419. background: #f8d7da;
  420. color: #721c24;
  421. }
  422. /* 文件分片样式 */
  423. .file-chunks {
  424. border-top: 1px solid #e1e8ed;
  425. padding: 20px;
  426. }
  427. .chunks-title {
  428. color: #333;
  429. margin-bottom: 16px;
  430. font-size: 1.2rem;
  431. }
  432. .chunks-toggle {
  433. margin-bottom: 16px;
  434. display: flex;
  435. gap: 10px;
  436. }
  437. .chunk-item {
  438. border: 1px solid #e1e8ed;
  439. border-radius: 4px;
  440. margin-bottom: 10px;
  441. }
  442. .chunk-header {
  443. padding: 12px 16px;
  444. background: #f8f9fa;
  445. border-bottom: 1px solid #e1e8ed;
  446. cursor: pointer;
  447. display: flex;
  448. justify-content: space-between;
  449. align-items: center;
  450. }
  451. .chunk-header:hover {
  452. background: #f1f3f4;
  453. }
  454. .chunk-title {
  455. font-weight: 500;
  456. color: #333;
  457. }
  458. .chunk-toggle {
  459. color: #5f6368;
  460. font-size: 0.9rem;
  461. }
  462. .chunk-content {
  463. padding: 16px;
  464. background: #fff;
  465. white-space: pre-wrap;
  466. line-height: 1.6;
  467. color: #333;
  468. border-radius: 0 0 4px 4px;
  469. max-height: 300px;
  470. overflow-y: auto;
  471. }
  472. .chunk-content.collapsed {
  473. display: none;
  474. }
  475. /* 按钮样式 */
  476. .btn {
  477. padding: 8px 16px;
  478. border: none;
  479. border-radius: 4px;
  480. font-size: 0.9rem;
  481. font-weight: 500;
  482. cursor: pointer;
  483. transition: all 0.2s;
  484. text-decoration: none;
  485. display: inline-block;
  486. }
  487. .btn-secondary {
  488. background: #6c757d;
  489. color: #fff;
  490. }
  491. .btn-secondary:hover {
  492. background: #5a6268;
  493. }
  494. /* 加载状态 */
  495. .loading {
  496. text-align: center;
  497. padding: 40px;
  498. color: #5f6368;
  499. }
  500. /* 响应式设计 */
  501. @media (max-width: 768px) {
  502. .header-content {
  503. padding: 0 16px;
  504. }
  505. .main {
  506. padding: 16px;
  507. }
  508. .login-box {
  509. margin: 20px;
  510. padding: 30px;
  511. }
  512. .file-list-header,
  513. .file-item {
  514. grid-template-columns: 1fr 80px 120px;
  515. gap: 10px;
  516. padding: 12px 16px;
  517. }
  518. .file-detail-header {
  519. flex-direction: column;
  520. gap: 16px;
  521. align-items: flex-start;
  522. }
  523. .header-actions {
  524. width: 100%;
  525. justify-content: space-between;
  526. }
  527. .info-grid {
  528. grid-template-columns: 1fr;
  529. }
  530. }
  531. /* 解析测试样式 */
  532. .btn-test {
  533. background: #ff6b35;
  534. color: #fff;
  535. margin-left: 10px;
  536. font-size: 0.85rem;
  537. padding: 6px 12px;
  538. }
  539. .btn-test:hover {
  540. background: #e55a2e;
  541. }
  542. .btn-test:disabled {
  543. background: #ccc;
  544. cursor: not-allowed;
  545. }
  546. .btn-test.loading {
  547. background: #ccc;
  548. cursor: wait;
  549. }
  550. .btn-text {
  551. background: transparent;
  552. color: #1a73e8;
  553. border: none;
  554. padding: 6px 12px;
  555. font-size: 0.9rem;
  556. cursor: pointer;
  557. }
  558. .btn-text:hover {
  559. background: #f8f9fa;
  560. }
  561. .result-title {
  562. margin: 0 0 15px 0;
  563. font-size: 1.2rem;
  564. font-weight: 600;
  565. }
  566. .result-content {
  567. margin-bottom: 15px;
  568. }
  569. .result-item {
  570. display: flex;
  571. align-items: flex-start;
  572. gap: 12px;
  573. margin-bottom: 15px;
  574. }
  575. .result-icon {
  576. font-size: 1.2rem;
  577. margin-top: 2px;
  578. }
  579. .result-text {
  580. flex: 1;
  581. line-height: 1.5;
  582. }
  583. .content-preview {
  584. margin-top: 20px;
  585. padding: 15px;
  586. background: rgba(255, 255, 255, 0.7);
  587. border-radius: 6px;
  588. }
  589. .content-preview h4 {
  590. margin: 0 0 12px 0;
  591. font-size: 1rem;
  592. color: #333;
  593. }
  594. .chunk-preview {
  595. margin-bottom: 15px;
  596. padding: 12px;
  597. background: #fff;
  598. border: 1px solid rgba(0, 0, 0, 0.1);
  599. border-radius: 4px;
  600. }
  601. .chunk-info {
  602. font-size: 0.85rem;
  603. color: #666;
  604. margin-bottom: 8px;
  605. font-weight: 500;
  606. }
  607. .chunk-preview-content {
  608. font-family: 'Courier New', monospace;
  609. font-size: 0.9rem;
  610. line-height: 1.4;
  611. white-space: pre-wrap;
  612. word-break: break-word;
  613. }
  614. .result-actions {
  615. margin-top: 15px;
  616. padding-top: 15px;
  617. border-top: 1px solid rgba(0, 0, 0, 0.1);
  618. }
  619. .result-close {
  620. text-align: right;
  621. border-top: 1px solid rgba(0, 0, 0, 0.1);
  622. padding-top: 15px;
  623. }
  624. /* 模态对话框样式 */
  625. .modal-overlay {
  626. position: fixed;
  627. top: 0;
  628. left: 0;
  629. right: 0;
  630. bottom: 0;
  631. background: rgba(0, 0, 0, 0.5);
  632. display: flex;
  633. justify-content: center;
  634. align-items: center;
  635. z-index: 1000;
  636. }
  637. .modal-content {
  638. background: #fff;
  639. border-radius: 8px;
  640. box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  641. max-width: 90vw;
  642. max-height: 90vh;
  643. width: 800px;
  644. overflow: hidden;
  645. display: flex;
  646. flex-direction: column;
  647. }
  648. .modal-header {
  649. padding: 20px;
  650. border-bottom: 1px solid #e1e8ed;
  651. display: flex;
  652. justify-content: space-between;
  653. align-items: center;
  654. background: #f8f9fa;
  655. }
  656. .modal-header h3 {
  657. margin: 0;
  658. font-size: 1.3rem;
  659. color: #333;
  660. }
  661. .modal-close {
  662. background: none;
  663. border: none;
  664. font-size: 1.5rem;
  665. cursor: pointer;
  666. color: #666;
  667. padding: 0;
  668. width: 30px;
  669. height: 30px;
  670. display: flex;
  671. justify-content: center;
  672. align-items: center;
  673. border-radius: 50%;
  674. }
  675. .modal-close:hover {
  676. background: #e9ecef;
  677. color: #333;
  678. }
  679. .modal-body {
  680. padding: 20px;
  681. overflow-y: auto;
  682. flex: 1;
  683. }
  684. .parse-summary {
  685. margin-bottom: 25px;
  686. }
  687. .parse-summary h4 {
  688. margin: 0 0 15px 0;
  689. font-size: 1.1rem;
  690. color: #333;
  691. }
  692. .summary-grid {
  693. display: grid;
  694. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  695. gap: 10px;
  696. }
  697. .summary-item {
  698. display: flex;
  699. justify-content: space-between;
  700. padding: 8px 12px;
  701. background: #f8f9fa;
  702. border-radius: 4px;
  703. }
  704. .summary-item .label {
  705. font-weight: 500;
  706. color: #666;
  707. }
  708. .summary-item .value {
  709. font-weight: 600;
  710. color: #333;
  711. }
  712. .parse-chunks h4 {
  713. margin: 0 0 15px 0;
  714. font-size: 1.1rem;
  715. color: #333;
  716. }
  717. .chunks-container {
  718. max-height: 400px;
  719. overflow-y: auto;
  720. border: 1px solid #e1e8ed;
  721. border-radius: 6px;
  722. }
  723. /* 删除确认对话框样式 */
  724. .delete-modal {
  725. max-width: 500px;
  726. width: 90vw;
  727. }
  728. .delete-warning {
  729. display: flex;
  730. align-items: flex-start;
  731. gap: 15px;
  732. padding: 20px;
  733. background: #fff3cd;
  734. border: 1px solid #ffeaa7;
  735. border-radius: 6px;
  736. margin-bottom: 20px;
  737. }
  738. .warning-icon {
  739. font-size: 2rem;
  740. margin-top: 5px;
  741. }
  742. .warning-text {
  743. flex: 1;
  744. }
  745. .warning-text p {
  746. margin: 0 0 10px 0;
  747. line-height: 1.5;
  748. }
  749. .warning-text p:last-child {
  750. margin-bottom: 0;
  751. }
  752. .file-name-highlight {
  753. font-family: 'Courier New', monospace;
  754. background: #e9ecef;
  755. padding: 8px 12px;
  756. border-radius: 4px;
  757. border-left: 4px solid #dc3545;
  758. font-weight: 600;
  759. color: #333;
  760. }
  761. .warning-message {
  762. color: #856404;
  763. font-size: 0.9rem;
  764. }
  765. .modal-footer {
  766. padding: 20px;
  767. border-top: 1px solid #e1e8ed;
  768. display: flex;
  769. justify-content: flex-end;
  770. gap: 10px;
  771. background: #f8f9fa;
  772. }
  773. .btn-cancel {
  774. background: #6c757d;
  775. color: #fff;
  776. border: 1px solid #6c757d;
  777. }
  778. .btn-cancel:hover {
  779. background: #5a6268;
  780. border-color: #545b62;
  781. }
  782. .btn-danger {
  783. background: #dc3545;
  784. color: #fff;
  785. border: 1px solid #dc3545;
  786. }
  787. .btn-danger:hover {
  788. background: #c82333;
  789. border-color: #bd2130;
  790. }
  791. .btn-danger:disabled,
  792. .btn-danger.loading {
  793. background: #6c757d;
  794. border-color: #6c757d;
  795. cursor: wait;
  796. }
  797. /* 删除消息样式 */
  798. .delete-message {
  799. display: flex;
  800. align-items: flex-start;
  801. gap: 12px;
  802. padding: 15px 20px;
  803. border-radius: 6px;
  804. margin-bottom: 20px;
  805. border: 1px solid;
  806. position: relative;
  807. }
  808. .delete-message.success {
  809. background: #d4edda;
  810. border-color: #c3e6cb;
  811. color: #155724;
  812. }
  813. .delete-message.error {
  814. background: #f8d7da;
  815. border-color: #f5c6cb;
  816. color: #721c24;
  817. }
  818. .message-icon {
  819. font-size: 1.2rem;
  820. margin-top: 2px;
  821. }
  822. .message-text {
  823. flex: 1;
  824. line-height: 1.5;
  825. }
  826. .message-text small {
  827. opacity: 0.8;
  828. }
  829. .message-close {
  830. position: absolute;
  831. top: 10px;
  832. right: 15px;
  833. background: none;
  834. border: none;
  835. font-size: 1.2rem;
  836. cursor: pointer;
  837. opacity: 0.6;
  838. padding: 0;
  839. width: 20px;
  840. height: 20px;
  841. display: flex;
  842. justify-content: center;
  843. align-items: center;
  844. }
  845. .message-close:hover {
  846. opacity: 1;
  847. }
  848. /* 响应式调整 */
  849. @media (max-width: 768px) {
  850. .modal-content {
  851. width: 95vw;
  852. max-height: 95vh;
  853. }
  854. .delete-modal {
  855. width: 95vw;
  856. max-width: none;
  857. }
  858. .delete-warning {
  859. flex-direction: column;
  860. gap: 10px;
  861. text-align: center;
  862. }
  863. .warning-icon {
  864. font-size: 3rem;
  865. margin-top: 0;
  866. }
  867. .modal-header,
  868. .modal-body {
  869. padding: 15px;
  870. }
  871. .summary-grid {
  872. grid-template-columns: 1fr;
  873. }
  874. .content-preview {
  875. padding: 12px;
  876. }
  877. }
  878. /* 文件上传样式 */
  879. .file-item.uploading {
  880. background: #e8f4fd;
  881. border: 1px dashed #1a73e8;
  882. animation: uploadPulse 2s infinite;
  883. }
  884. .file-item.upload-error {
  885. background: #ffeaa7;
  886. border: 1px solid #fdcb6e;
  887. }
  888. @keyframes uploadPulse {
  889. 0%, 100% { opacity: 0.8; }
  890. 50% { opacity: 1; }
  891. }
  892. .upload-status {
  893. margin-left: 8px;
  894. font-size: 0.8rem;
  895. color: #1a73e8;
  896. font-weight: 500;
  897. }
  898. .upload-progress {
  899. display: flex;
  900. align-items: center;
  901. width: 100%;
  902. }
  903. .progress-bar {
  904. width: 100px;
  905. height: 6px;
  906. background: #e9ecef;
  907. border-radius: 3px;
  908. overflow: hidden;
  909. }
  910. .progress-fill {
  911. height: 100%;
  912. background: #28a745;
  913. width: 0%;
  914. transition: width 0.3s ease;
  915. border-radius: 3px;
  916. }
  917. .error-text {
  918. color: #dc3545;
  919. font-size: 0.9rem;
  920. }
  921. /* 上传结果对话框样式 */
  922. .upload-result-modal {
  923. max-width: 500px;
  924. width: 90vw;
  925. }
  926. .upload-result {
  927. display: flex;
  928. align-items: flex-start;
  929. gap: 15px;
  930. padding: 20px;
  931. border-radius: 6px;
  932. margin-bottom: 20px;
  933. }
  934. .upload-result.success {
  935. background: #d4edda;
  936. border: 1px solid #c3e6cb;
  937. color: #155724;
  938. }
  939. .upload-result.error {
  940. background: #f8d7da;
  941. border: 1px solid #f5c6cb;
  942. color: #721c24;
  943. }
  944. .result-icon {
  945. font-size: 2rem;
  946. margin-top: 5px;
  947. }
  948. .result-message {
  949. flex: 1;
  950. }
  951. .result-message p {
  952. margin: 0 0 8px 0;
  953. line-height: 1.5;
  954. }
  955. .result-message p:last-child {
  956. margin-bottom: 0;
  957. }
  958. .failed-files {
  959. padding: 15px;
  960. background: #f8f9fa;
  961. border-radius: 4px;
  962. margin-bottom: 20px;
  963. }
  964. .failed-files h4 {
  965. margin: 0 0 10px 0;
  966. font-size: 1rem;
  967. color: #333;
  968. }
  969. .failed-files ul {
  970. margin: 0;
  971. padding-left: 20px;
  972. }
  973. .failed-files li {
  974. margin-bottom: 5px;
  975. line-height: 1.4;
  976. }
  977. .btn-primary {
  978. background: #1a73e8;
  979. color: #fff;
  980. border: 1px solid #1a73e8;
  981. }
  982. .btn-primary:hover {
  983. background: #1557b0;
  984. border-color: #1557b0;
  985. }
  986. /* 响应式设计补充 */
  987. @media (max-width: 768px) {
  988. .file-browser-header {
  989. flex-direction: column;
  990. gap: 15px;
  991. align-items: flex-start;
  992. }
  993. .browser-actions {
  994. width: 100%;
  995. justify-content: flex-end;
  996. }
  997. .upload-result-modal {
  998. width: 95vw;
  999. max-width: none;
  1000. }
  1001. .upload-result {
  1002. flex-direction: column;
  1003. text-align: center;
  1004. }
  1005. .result-icon {
  1006. font-size: 3rem;
  1007. margin-top: 0;
  1008. }
  1009. }