export-view.css 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261
  1. /* 确保 body 和 html 占满整个 iframe */
  2. html, body {
  3. margin: 0;
  4. padding: 0;
  5. width: 100%;
  6. height: 100%;
  7. overflow: hidden;
  8. }
  9. /* 弹出框遮罩层 */
  10. .export-overlay {
  11. position: fixed;
  12. top: 0;
  13. left: 0;
  14. right: 0;
  15. bottom: 0;
  16. width: 100%;
  17. height: 100%;
  18. background: rgba(0, 0, 0, 0.7);
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. z-index: 999999;
  23. backdrop-filter: blur(4px);
  24. animation: overlayFadeIn 0.3s ease-out;
  25. margin: 0;
  26. padding: 0;
  27. }
  28. /* 关闭按钮(在弹窗右上角) */
  29. .modal-close-btn {
  30. position: absolute;
  31. width: 44px;
  32. height: 44px;
  33. border-radius: 50%;
  34. background: white;
  35. border: 2px solid #e5e7eb;
  36. color: #6b7280;
  37. cursor: pointer;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  42. z-index: 10;
  43. padding: 0;
  44. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  45. top: -22px;
  46. right: -22px;
  47. }
  48. .modal-close-btn:hover {
  49. background: #f9fafb;
  50. color: #1f2937;
  51. border-color: #d1d5db;
  52. transform: scale(1.1);
  53. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  54. }
  55. .modal-close-btn:active {
  56. transform: scale(0.95);
  57. }
  58. .modal-close-btn svg {
  59. width: 20px;
  60. height: 20px;
  61. }
  62. @keyframes overlayFadeIn {
  63. from {
  64. background: rgba(0, 0, 0, 0);
  65. backdrop-filter: blur(0);
  66. }
  67. to {
  68. background: rgba(0, 0, 0, 0.7);
  69. backdrop-filter: blur(4px);
  70. }
  71. }
  72. /* 弹出框容器 */
  73. .export-modal {
  74. background: white;
  75. border-radius: 16px;
  76. box-shadow:
  77. 0 20px 60px rgba(0, 0, 0, 0.3),
  78. 0 0 0 1px rgba(0, 0, 0, 0.05);
  79. min-width: 800px;
  80. max-width: 1200px;
  81. width: 90%;
  82. max-height: 90vh;
  83. display: flex;
  84. flex-direction: column;
  85. animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  86. overflow: visible;
  87. position: relative;
  88. z-index: 1000000;
  89. margin: auto;
  90. }
  91. @keyframes modalSlideIn {
  92. from {
  93. opacity: 0;
  94. transform: translateY(-30px) scale(0.95);
  95. }
  96. to {
  97. opacity: 1;
  98. transform: translateY(0) scale(1);
  99. }
  100. }
  101. /* 图片预览容器 - 左右两个图框 */
  102. .export-preview-container {
  103. width: 100%;
  104. min-height: 500px;
  105. max-height: 70vh;
  106. display: flex;
  107. gap: 32px;
  108. padding: 32px;
  109. box-sizing: border-box;
  110. background: #fafbfc;
  111. }
  112. /* 单列预览容器(仅显示Spritesheet) */
  113. .export-preview-container.export-preview-single {
  114. justify-content: center;
  115. }
  116. .export-preview-container.export-preview-single .export-spritesheet-box {
  117. max-width: 800px;
  118. width: 100%;
  119. }
  120. /* 预览图框 - 左右各占一半 */
  121. .export-preview-box {
  122. flex: 1;
  123. min-height: 400px;
  124. background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
  125. border: 2px solid #e5e7eb;
  126. border-radius: 12px;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. position: relative;
  131. overflow: auto;
  132. box-sizing: border-box;
  133. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  134. transition: box-shadow 0.2s;
  135. }
  136. .export-preview-box:hover {
  137. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  138. }
  139. /* 右侧 Spritesheet 区域容器 */
  140. .export-spritesheet-section {
  141. flex: 1;
  142. display: flex;
  143. flex-direction: column;
  144. }
  145. /* 左侧:参考图上传区域 */
  146. .export-reference-section {
  147. flex: 1;
  148. display: flex;
  149. flex-direction: column;
  150. gap: 12px;
  151. }
  152. .export-reference-box {
  153. cursor: pointer;
  154. transition: border-color 0.2s;
  155. flex: 1;
  156. }
  157. .export-reference-box:hover {
  158. border-color: #667eea;
  159. }
  160. .reference-upload-area {
  161. display: flex;
  162. flex-direction: column;
  163. align-items: center;
  164. justify-content: center;
  165. gap: 12px;
  166. color: #9ca3af;
  167. pointer-events: none;
  168. width: 100%;
  169. height: 100%;
  170. position: absolute;
  171. top: 0;
  172. left: 0;
  173. }
  174. .reference-upload-area.hide {
  175. display: none;
  176. }
  177. .upload-icon {
  178. font-size: 48px;
  179. font-weight: 300;
  180. color: #d1d5db;
  181. line-height: 1;
  182. }
  183. .upload-text {
  184. font-size: 14px;
  185. font-weight: 500;
  186. }
  187. .reference-image-wrapper {
  188. position: relative;
  189. width: 100%;
  190. height: 100%;
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. }
  195. .reference-image {
  196. max-width: 100%;
  197. max-height: 100%;
  198. object-fit: contain;
  199. }
  200. .reference-remove-btn {
  201. position: absolute;
  202. top: 12px;
  203. right: 12px;
  204. width: 32px;
  205. height: 32px;
  206. border-radius: 50%;
  207. background: rgba(0, 0, 0, 0.6);
  208. backdrop-filter: blur(4px);
  209. border: none;
  210. color: white;
  211. cursor: pointer;
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. transition: all 0.2s;
  216. z-index: 10;
  217. padding: 0;
  218. }
  219. .reference-remove-btn:hover {
  220. background: rgba(239, 68, 68, 0.9);
  221. transform: scale(1.1);
  222. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  223. }
  224. .reference-remove-btn:active {
  225. transform: scale(0.95);
  226. }
  227. .reference-remove-btn svg {
  228. width: 16px;
  229. height: 16px;
  230. }
  231. /* 替换按钮 */
  232. .replace-btn {
  233. padding: 10px 24px;
  234. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  235. color: white;
  236. border: none;
  237. border-radius: 8px;
  238. font-size: 14px;
  239. font-weight: 500;
  240. cursor: pointer;
  241. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  242. box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  243. align-self: center;
  244. min-width: 100px;
  245. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  246. }
  247. .replace-btn:hover {
  248. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  249. transform: translateY(-1px);
  250. }
  251. .replace-btn:active {
  252. transform: translateY(0) scale(0.98);
  253. }
  254. .replace-btn:disabled {
  255. background: #d1d5db;
  256. color: #9ca3af;
  257. box-shadow: none;
  258. cursor: not-allowed;
  259. transform: none;
  260. }
  261. /* 右侧:Spritesheet 预览 */
  262. .export-spritesheet-box {
  263. background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
  264. }
  265. #previewImage {
  266. max-width: 100%;
  267. max-height: 100%;
  268. width: auto;
  269. height: auto;
  270. object-fit: contain;
  271. display: none;
  272. margin: auto;
  273. }
  274. #previewImage.show {
  275. display: block;
  276. }
  277. /* 悬浮按钮组 - 右下角 */
  278. .floating-btn-group {
  279. position: absolute;
  280. bottom: 16px;
  281. right: 16px;
  282. display: flex;
  283. flex-direction: column;
  284. gap: 10px;
  285. z-index: 100;
  286. }
  287. /* 悬浮AI按钮 */
  288. .floating-ai-btn {
  289. width: 46px;
  290. height: 46px;
  291. border-radius: 50%;
  292. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  293. border: none;
  294. color: white;
  295. cursor: pointer;
  296. display: flex;
  297. align-items: center;
  298. justify-content: center;
  299. box-shadow:
  300. 0 6px 20px rgba(16, 185, 129, 0.4),
  301. 0 3px 10px rgba(0, 0, 0, 0.15);
  302. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  303. padding: 0;
  304. overflow: hidden;
  305. }
  306. .floating-ai-btn:hover:not(:disabled) {
  307. background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  308. box-shadow:
  309. 0 10px 28px rgba(16, 185, 129, 0.5),
  310. 0 5px 14px rgba(0, 0, 0, 0.2);
  311. transform: translateY(-3px) scale(1.08);
  312. }
  313. .floating-ai-btn:active:not(:disabled) {
  314. transform: translateY(-1px) scale(1.03);
  315. }
  316. .floating-ai-btn:disabled {
  317. opacity: 0.4;
  318. cursor: not-allowed;
  319. transform: none;
  320. box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  321. background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  322. }
  323. .floating-ai-btn svg {
  324. width: 20px;
  325. height: 20px;
  326. flex-shrink: 0;
  327. filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  328. }
  329. .floating-ai-btn.active {
  330. background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  331. box-shadow:
  332. 0 0 0 3px rgba(16, 185, 129, 0.3),
  333. 0 6px 20px rgba(16, 185, 129, 0.4);
  334. }
  335. /* 悬浮下载按钮 */
  336. .floating-download-btn {
  337. width: 52px;
  338. height: 52px;
  339. border-radius: 50%;
  340. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  341. border: none;
  342. color: white;
  343. cursor: pointer;
  344. display: flex;
  345. align-items: center;
  346. justify-content: center;
  347. box-shadow:
  348. 0 8px 24px rgba(102, 126, 234, 0.4),
  349. 0 4px 12px rgba(0, 0, 0, 0.15);
  350. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  351. padding: 0;
  352. overflow: hidden;
  353. }
  354. .floating-download-btn::before {
  355. content: '';
  356. position: absolute;
  357. top: 50%;
  358. left: 50%;
  359. width: 0;
  360. height: 0;
  361. border-radius: 50%;
  362. background: rgba(255, 255, 255, 0.2);
  363. transform: translate(-50%, -50%);
  364. transition: width 0.6s, height 0.6s;
  365. }
  366. .floating-download-btn:hover::before {
  367. width: 200px;
  368. height: 200px;
  369. }
  370. .floating-download-btn:hover {
  371. background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
  372. box-shadow:
  373. 0 12px 32px rgba(102, 126, 234, 0.5),
  374. 0 6px 16px rgba(0, 0, 0, 0.2);
  375. transform: translateY(-3px) scale(1.08);
  376. }
  377. .floating-download-btn:active {
  378. background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
  379. transform: translateY(-1px) scale(1.03);
  380. box-shadow:
  381. 0 6px 20px rgba(102, 126, 234, 0.4),
  382. 0 4px 12px rgba(0, 0, 0, 0.15);
  383. }
  384. .floating-download-btn:disabled {
  385. opacity: 0.4;
  386. cursor: not-allowed;
  387. transform: none;
  388. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  389. background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  390. }
  391. .floating-download-btn svg {
  392. width: 22px;
  393. height: 22px;
  394. flex-shrink: 0;
  395. position: relative;
  396. z-index: 1;
  397. filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  398. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  399. }
  400. .floating-download-btn:hover:not(:disabled) svg {
  401. transform: translateY(3px);
  402. }
  403. .floating-download-btn:active:not(:disabled) svg {
  404. transform: translateY(5px);
  405. }
  406. .preview-placeholder {
  407. position: absolute;
  408. display: flex;
  409. flex-direction: column;
  410. align-items: center;
  411. justify-content: center;
  412. gap: 16px;
  413. color: #9ca3af;
  414. }
  415. .preview-placeholder.hide {
  416. display: none;
  417. }
  418. .loading-spinner {
  419. width: 40px;
  420. height: 40px;
  421. border: 4px solid #e5e7eb;
  422. border-top-color: #667eea;
  423. border-radius: 50%;
  424. animation: spin 0.8s linear infinite;
  425. }
  426. .loading-text {
  427. font-size: 15px;
  428. font-weight: 500;
  429. color: #6b7280;
  430. }
  431. @keyframes spin {
  432. to {
  433. transform: rotate(360deg);
  434. }
  435. }
  436. /* 按钮区域 */
  437. .export-actions {
  438. padding: 20px 32px;
  439. display: flex;
  440. gap: 12px;
  441. justify-content: flex-end;
  442. align-items: center;
  443. flex-shrink: 0;
  444. border-top: 1px solid #e5e7eb;
  445. background: white;
  446. }
  447. .export-btn {
  448. padding: 12px 32px;
  449. border: none;
  450. border-radius: 10px;
  451. font-size: 15px;
  452. cursor: pointer;
  453. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  454. font-weight: 600;
  455. letter-spacing: 0.3px;
  456. min-width: 120px;
  457. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  458. display: flex;
  459. align-items: center;
  460. justify-content: center;
  461. }
  462. .export-cancel {
  463. background: white;
  464. color: #374151;
  465. border: 2px solid #d1d5db;
  466. font-weight: 600;
  467. }
  468. .export-cancel:hover {
  469. background: #f9fafb;
  470. color: #1f2937;
  471. border-color: #9ca3af;
  472. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  473. transform: translateY(-1px);
  474. }
  475. .export-cancel:active {
  476. transform: translateY(0) scale(0.98);
  477. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  478. }
  479. .export-confirm {
  480. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  481. color: white;
  482. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  483. }
  484. .export-confirm:hover {
  485. box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  486. transform: translateY(-1px);
  487. }
  488. .export-confirm:active {
  489. transform: translateY(0) scale(0.98);
  490. }
  491. .export-confirm:disabled {
  492. background: #d1d5db;
  493. color: #9ca3af;
  494. box-shadow: none;
  495. cursor: not-allowed;
  496. transform: none;
  497. }
  498. .export-confirm svg {
  499. flex-shrink: 0;
  500. transition: transform 0.2s;
  501. }
  502. .export-confirm:hover:not(:disabled) svg {
  503. transform: translateY(2px);
  504. }
  505. .export-confirm:active:not(:disabled) svg {
  506. transform: translateY(4px);
  507. }
  508. /* 替换按钮 */
  509. .replace-btn {
  510. padding: 10px 24px;
  511. border: none;
  512. border-radius: 8px;
  513. font-size: 14px;
  514. cursor: pointer;
  515. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  516. font-weight: 500;
  517. letter-spacing: 0.3px;
  518. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  519. color: white;
  520. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  521. align-self: center;
  522. min-width: 120px;
  523. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  524. }
  525. .replace-btn:hover {
  526. box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  527. transform: translateY(-1px);
  528. }
  529. .replace-btn:active {
  530. transform: translateY(0) scale(0.98);
  531. }
  532. .replace-btn:disabled {
  533. background: #d1d5db;
  534. color: #9ca3af;
  535. box-shadow: none;
  536. cursor: not-allowed;
  537. transform: none;
  538. }
  539. /* 提示词配置区域 */
  540. .prompt-config-section {
  541. padding: 24px 32px;
  542. border-top: 1px solid #e5e7eb;
  543. border-bottom: 1px solid #e5e7eb;
  544. background: white;
  545. display: flex;
  546. flex-direction: column;
  547. gap: 20px;
  548. }
  549. .config-row {
  550. display: flex;
  551. flex-direction: column;
  552. gap: 8px;
  553. }
  554. .config-label-wrapper {
  555. display: flex;
  556. align-items: center;
  557. gap: 8px;
  558. }
  559. .config-label {
  560. font-size: 14px;
  561. font-weight: 500;
  562. color: #374151;
  563. }
  564. .download-icon-hint {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. width: 24px;
  569. height: 24px;
  570. cursor: pointer;
  571. opacity: 0.7;
  572. transition: all 0.2s;
  573. border-radius: 4px;
  574. padding: 2px;
  575. }
  576. .download-icon-hint:hover {
  577. opacity: 1;
  578. background: rgba(102, 126, 234, 0.1);
  579. transform: scale(1.1);
  580. }
  581. .download-icon-hint svg {
  582. width: 20px;
  583. height: 20px;
  584. }
  585. .config-input {
  586. padding: 10px 12px;
  587. border: 1px solid #d1d5db;
  588. border-radius: 6px;
  589. font-size: 14px;
  590. color: #1f2937;
  591. background: white;
  592. outline: none;
  593. transition: all 0.2s;
  594. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  595. }
  596. .config-input:focus {
  597. border-color: #667eea;
  598. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  599. }
  600. .config-textarea {
  601. padding: 10px 12px;
  602. border: 1px solid #d1d5db;
  603. border-radius: 6px;
  604. font-size: 14px;
  605. color: #1f2937;
  606. background: white;
  607. outline: none;
  608. transition: all 0.2s;
  609. resize: vertical;
  610. min-height: 80px;
  611. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  612. line-height: 1.5;
  613. }
  614. .config-textarea:focus {
  615. border-color: #667eea;
  616. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  617. }
  618. .prompt-actions {
  619. display: flex;
  620. justify-content: flex-end;
  621. align-items: center;
  622. gap: 12px;
  623. padding-top: 10px;
  624. }
  625. /* 操作按钮通用样式 */
  626. .action-btn {
  627. display: flex;
  628. align-items: center;
  629. justify-content: center;
  630. gap: 8px;
  631. padding: 12px 24px;
  632. border: none;
  633. border-radius: 10px;
  634. font-size: 15px;
  635. font-weight: 600;
  636. cursor: pointer;
  637. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  638. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  639. letter-spacing: 0.3px;
  640. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  641. position: relative;
  642. overflow: hidden;
  643. }
  644. .action-btn::before {
  645. content: '';
  646. position: absolute;
  647. top: 50%;
  648. left: 50%;
  649. width: 0;
  650. height: 0;
  651. border-radius: 50%;
  652. background: rgba(255, 255, 255, 0.3);
  653. transform: translate(-50%, -50%);
  654. transition: width 0.6s, height 0.6s;
  655. }
  656. .action-btn:hover::before {
  657. width: 300px;
  658. height: 300px;
  659. }
  660. .action-btn:hover {
  661. transform: translateY(-2px);
  662. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  663. }
  664. .action-btn:active {
  665. transform: translateY(0) scale(0.98);
  666. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  667. }
  668. .action-btn:disabled {
  669. opacity: 0.5;
  670. cursor: not-allowed;
  671. transform: none;
  672. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  673. }
  674. .action-btn svg {
  675. width: 20px;
  676. height: 20px;
  677. flex-shrink: 0;
  678. transition: transform 0.3s;
  679. }
  680. .action-btn:hover svg {
  681. transform: scale(1.1);
  682. }
  683. /* 下载按钮 */
  684. .download-action-btn {
  685. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  686. color: white;
  687. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  688. }
  689. .download-action-btn:hover {
  690. box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  691. background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
  692. }
  693. .download-action-btn:active {
  694. background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
  695. }
  696. /* 替换按钮 */
  697. .replace-action-btn {
  698. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  699. color: white;
  700. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  701. }
  702. .replace-action-btn:hover {
  703. box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  704. background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  705. }
  706. .replace-action-btn:active {
  707. background: linear-gradient(135deg, #059669 0%, #047857 100%);
  708. }
  709. /* 响应式设计 */
  710. @media (max-width: 900px) {
  711. .export-modal {
  712. min-width: auto;
  713. width: 95%;
  714. }
  715. .export-preview-container {
  716. flex-direction: column;
  717. }
  718. .export-preview-box {
  719. min-height: 300px;
  720. }
  721. }
  722. /* 下载确认对话框 */
  723. .download-confirm-overlay {
  724. position: fixed;
  725. top: 0;
  726. left: 0;
  727. right: 0;
  728. bottom: 0;
  729. width: 100%;
  730. height: 100%;
  731. background: rgba(0, 0, 0, 0.7);
  732. display: none; /* 默认隐藏 */
  733. align-items: center;
  734. justify-content: center;
  735. z-index: 10000000;
  736. backdrop-filter: blur(4px);
  737. animation: overlayFadeIn 0.3s ease-out;
  738. }
  739. .download-confirm-modal {
  740. background: white;
  741. border-radius: 16px;
  742. padding: 0;
  743. max-width: 600px;
  744. width: 90%;
  745. max-height: 90vh;
  746. overflow: hidden;
  747. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  748. animation: modalSlideIn 0.3s ease-out;
  749. }
  750. .download-confirm-header {
  751. display: flex;
  752. align-items: center;
  753. justify-content: space-between;
  754. padding: 24px;
  755. border-bottom: 1px solid #e5e7eb;
  756. }
  757. .download-confirm-header h3 {
  758. margin: 0;
  759. font-size: 20px;
  760. font-weight: 600;
  761. color: #111827;
  762. }
  763. .download-confirm-close {
  764. width: 36px;
  765. height: 36px;
  766. border-radius: 50%;
  767. background: #f3f4f6;
  768. border: none;
  769. color: #6b7280;
  770. cursor: pointer;
  771. display: flex;
  772. align-items: center;
  773. justify-content: center;
  774. transition: all 0.2s;
  775. padding: 0;
  776. }
  777. .download-confirm-close:hover {
  778. background: #e5e7eb;
  779. color: #374151;
  780. }
  781. .download-confirm-content {
  782. padding: 24px;
  783. display: flex;
  784. flex-direction: column;
  785. gap: 16px;
  786. }
  787. .download-option {
  788. display: flex;
  789. align-items: center;
  790. gap: 16px;
  791. padding: 20px;
  792. border: 2px solid #e5e7eb;
  793. border-radius: 12px;
  794. cursor: pointer;
  795. transition: all 0.2s;
  796. background: #f9fafb;
  797. }
  798. .download-option:hover {
  799. border-color: #667eea;
  800. background: #f0f4ff;
  801. transform: translateY(-2px);
  802. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  803. }
  804. .download-option-icon {
  805. width: 32px;
  806. height: 32px;
  807. flex-shrink: 0;
  808. display: flex;
  809. align-items: center;
  810. justify-content: center;
  811. color: #667eea;
  812. }
  813. .download-option-icon svg {
  814. width: 100%;
  815. height: 100%;
  816. }
  817. .download-option-info {
  818. flex: 1;
  819. }
  820. .download-option-title {
  821. font-size: 16px;
  822. font-weight: 600;
  823. color: #111827;
  824. margin-bottom: 4px;
  825. }
  826. .download-option-desc {
  827. font-size: 14px;
  828. color: #6b7280;
  829. line-height: 1.5;
  830. }
  831. .download-option-price {
  832. margin-top: 8px;
  833. font-size: 16px;
  834. font-weight: 700;
  835. color: #667eea;
  836. background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  837. padding: 6px 12px;
  838. border-radius: 8px;
  839. display: inline-block;
  840. border: 2px solid rgba(102, 126, 234, 0.3);
  841. box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  842. transition: all 0.3s ease;
  843. }
  844. .download-option:hover .download-option-price {
  845. background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  846. border-color: rgba(102, 126, 234, 0.5);
  847. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  848. transform: scale(1.05);
  849. }
  850. /* AI生图队列区域 */
  851. .ai-queue-section {
  852. padding: 0 20px 16px;
  853. }
  854. .ai-queue-title {
  855. font-size: 13px;
  856. font-weight: 600;
  857. color: #667eea;
  858. margin-bottom: 12px;
  859. display: flex;
  860. align-items: center;
  861. gap: 6px;
  862. }
  863. .ai-queue-title::before {
  864. content: '';
  865. width: 3px;
  866. height: 14px;
  867. background: linear-gradient(135deg, #667eea, #764ba2);
  868. border-radius: 2px;
  869. }
  870. .ai-queue-list {
  871. display: flex;
  872. gap: 12px;
  873. overflow-x: auto;
  874. overflow-y: hidden;
  875. padding-bottom: 10px;
  876. scroll-behavior: smooth;
  877. -webkit-overflow-scrolling: touch;
  878. }
  879. .ai-queue-list::-webkit-scrollbar {
  880. height: 6px;
  881. }
  882. .ai-queue-list::-webkit-scrollbar-track {
  883. background: #f1f1f1;
  884. border-radius: 3px;
  885. }
  886. .ai-queue-list::-webkit-scrollbar-thumb {
  887. background: linear-gradient(135deg, #667eea, #764ba2);
  888. border-radius: 3px;
  889. }
  890. .ai-queue-list::-webkit-scrollbar-thumb:hover {
  891. background: linear-gradient(135deg, #5a6fd6, #6a4190);
  892. }
  893. .ai-queue-item {
  894. flex-shrink: 0;
  895. width: 100px;
  896. height: 100px;
  897. border-radius: 12px;
  898. overflow: hidden;
  899. position: relative;
  900. background: #f8fafc;
  901. border: 2px solid #e5e7eb;
  902. cursor: pointer;
  903. transition: all 0.3s;
  904. }
  905. .ai-queue-item:hover {
  906. border-color: #667eea;
  907. transform: translateY(-2px);
  908. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  909. }
  910. .ai-queue-item.rendering {
  911. border-color: #667eea;
  912. }
  913. .ai-queue-item.completed {
  914. border-color: #10b981;
  915. }
  916. .ai-queue-item.failed {
  917. border-color: #ef4444;
  918. }
  919. .ai-queue-item-preview {
  920. width: 100%;
  921. height: 100%;
  922. object-fit: cover;
  923. filter: blur(4px) brightness(0.8);
  924. }
  925. .ai-queue-item.completed .ai-queue-item-preview {
  926. filter: none;
  927. }
  928. .ai-queue-item-overlay {
  929. position: absolute;
  930. top: 0;
  931. left: 0;
  932. right: 0;
  933. bottom: 0;
  934. display: flex;
  935. flex-direction: column;
  936. align-items: center;
  937. justify-content: center;
  938. background: rgba(0, 0, 0, 0.3);
  939. }
  940. .ai-queue-item.completed .ai-queue-item-overlay {
  941. background: transparent;
  942. opacity: 0;
  943. transition: opacity 0.2s;
  944. }
  945. .ai-queue-item.completed:hover .ai-queue-item-overlay {
  946. opacity: 1;
  947. background: rgba(0, 0, 0, 0.5);
  948. }
  949. .ai-queue-item-spinner {
  950. width: 24px;
  951. height: 24px;
  952. border: 3px solid rgba(255, 255, 255, 0.3);
  953. border-top-color: white;
  954. border-radius: 50%;
  955. animation: spin 1s linear infinite;
  956. }
  957. .ai-queue-item-status {
  958. font-size: 10px;
  959. color: white;
  960. margin-top: 6px;
  961. font-weight: 500;
  962. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  963. }
  964. .ai-queue-item-icon {
  965. font-size: 20px;
  966. }
  967. .ai-queue-item-actions {
  968. display: flex;
  969. gap: 4px;
  970. }
  971. .ai-queue-item-action {
  972. width: 28px;
  973. height: 28px;
  974. border-radius: 50%;
  975. border: none;
  976. background: white;
  977. color: #667eea;
  978. cursor: pointer;
  979. display: flex;
  980. align-items: center;
  981. justify-content: center;
  982. transition: all 0.2s;
  983. }
  984. .ai-queue-item-action:hover {
  985. background: #667eea;
  986. color: white;
  987. transform: scale(1.1);
  988. }
  989. /* AI生图任务飞走动画 */
  990. .ai-task-fly-animation {
  991. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  992. color: white;
  993. padding: 12px 20px;
  994. border-radius: 12px;
  995. box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  996. display: flex;
  997. align-items: center;
  998. gap: 8px;
  999. }
  1000. .ai-task-fly-animation .fly-content {
  1001. display: flex;
  1002. align-items: center;
  1003. gap: 8px;
  1004. font-size: 14px;
  1005. font-weight: 600;
  1006. white-space: nowrap;
  1007. }
  1008. .ai-task-fly-animation svg {
  1009. fill: rgba(255, 255, 255, 0.3);
  1010. animation: sparkle 0.3s ease-in-out infinite alternate;
  1011. }
  1012. @keyframes sparkle {
  1013. from {
  1014. filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  1015. }
  1016. to {
  1017. filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  1018. }
  1019. }
  1020. /* 图片放大预览弹窗 */
  1021. .image-preview-modal {
  1022. position: fixed;
  1023. top: 0;
  1024. left: 0;
  1025. right: 0;
  1026. bottom: 0;
  1027. z-index: 200000;
  1028. display: flex;
  1029. align-items: center;
  1030. justify-content: center;
  1031. opacity: 0;
  1032. transition: opacity 0.3s ease;
  1033. }
  1034. .image-preview-modal.show {
  1035. opacity: 1;
  1036. }
  1037. .image-preview-modal-backdrop {
  1038. position: absolute;
  1039. top: 0;
  1040. left: 0;
  1041. right: 0;
  1042. bottom: 0;
  1043. background: rgba(0, 0, 0, 0.85);
  1044. backdrop-filter: blur(8px);
  1045. }
  1046. .image-preview-modal-content {
  1047. position: relative;
  1048. max-width: 90vw;
  1049. max-height: 90vh;
  1050. transform: scale(0.9);
  1051. transition: transform 0.3s ease;
  1052. }
  1053. .image-preview-modal.show .image-preview-modal-content {
  1054. transform: scale(1);
  1055. }
  1056. .image-preview-modal-content img {
  1057. max-width: 100%;
  1058. max-height: 85vh;
  1059. border-radius: 12px;
  1060. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  1061. }
  1062. .image-preview-modal-close {
  1063. position: absolute;
  1064. top: -40px;
  1065. right: 0;
  1066. width: 36px;
  1067. height: 36px;
  1068. border: none;
  1069. background: rgba(255, 255, 255, 0.2);
  1070. color: white;
  1071. font-size: 24px;
  1072. border-radius: 50%;
  1073. cursor: pointer;
  1074. transition: all 0.2s;
  1075. display: flex;
  1076. align-items: center;
  1077. justify-content: center;
  1078. line-height: 1;
  1079. }
  1080. .image-preview-modal-close:hover {
  1081. background: rgba(255, 255, 255, 0.3);
  1082. transform: scale(1.1);
  1083. }
  1084. .image-preview-modal-download {
  1085. position: absolute;
  1086. bottom: -50px;
  1087. left: 50%;
  1088. transform: translateX(-50%);
  1089. display: flex;
  1090. align-items: center;
  1091. gap: 8px;
  1092. padding: 10px 24px;
  1093. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  1094. color: white;
  1095. text-decoration: none;
  1096. border-radius: 25px;
  1097. font-size: 14px;
  1098. font-weight: 600;
  1099. transition: all 0.2s;
  1100. box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  1101. }
  1102. .image-preview-modal-download:hover {
  1103. transform: translateX(-50%) translateY(-2px);
  1104. box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  1105. }