export-view.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  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. /* 预览图框 - 左右各占一半 */
  113. .export-preview-box {
  114. flex: 1;
  115. min-height: 400px;
  116. background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
  117. border: 2px solid #e5e7eb;
  118. border-radius: 12px;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. position: relative;
  123. overflow: auto;
  124. box-sizing: border-box;
  125. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  126. transition: box-shadow 0.2s;
  127. }
  128. .export-preview-box:hover {
  129. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  130. }
  131. /* 右侧 Spritesheet 区域容器 */
  132. .export-spritesheet-section {
  133. flex: 1;
  134. display: flex;
  135. flex-direction: column;
  136. }
  137. /* 左侧:参考图上传区域 */
  138. .export-reference-section {
  139. flex: 1;
  140. display: flex;
  141. flex-direction: column;
  142. gap: 12px;
  143. }
  144. .export-reference-box {
  145. cursor: pointer;
  146. transition: border-color 0.2s;
  147. flex: 1;
  148. }
  149. .export-reference-box:hover {
  150. border-color: #667eea;
  151. }
  152. .reference-upload-area {
  153. display: flex;
  154. flex-direction: column;
  155. align-items: center;
  156. justify-content: center;
  157. gap: 12px;
  158. color: #9ca3af;
  159. pointer-events: none;
  160. width: 100%;
  161. height: 100%;
  162. position: absolute;
  163. top: 0;
  164. left: 0;
  165. }
  166. .reference-upload-area.hide {
  167. display: none;
  168. }
  169. .upload-icon {
  170. font-size: 48px;
  171. font-weight: 300;
  172. color: #d1d5db;
  173. line-height: 1;
  174. }
  175. .upload-text {
  176. font-size: 14px;
  177. font-weight: 500;
  178. }
  179. .reference-image-wrapper {
  180. position: relative;
  181. width: 100%;
  182. height: 100%;
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. }
  187. .reference-image {
  188. max-width: 100%;
  189. max-height: 100%;
  190. object-fit: contain;
  191. }
  192. .reference-remove-btn {
  193. position: absolute;
  194. top: 12px;
  195. right: 12px;
  196. width: 32px;
  197. height: 32px;
  198. border-radius: 50%;
  199. background: rgba(0, 0, 0, 0.6);
  200. backdrop-filter: blur(4px);
  201. border: none;
  202. color: white;
  203. cursor: pointer;
  204. display: flex;
  205. align-items: center;
  206. justify-content: center;
  207. transition: all 0.2s;
  208. z-index: 10;
  209. padding: 0;
  210. }
  211. .reference-remove-btn:hover {
  212. background: rgba(239, 68, 68, 0.9);
  213. transform: scale(1.1);
  214. box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  215. }
  216. .reference-remove-btn:active {
  217. transform: scale(0.95);
  218. }
  219. .reference-remove-btn svg {
  220. width: 16px;
  221. height: 16px;
  222. }
  223. /* 替换按钮 */
  224. .replace-btn {
  225. padding: 10px 24px;
  226. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  227. color: white;
  228. border: none;
  229. border-radius: 8px;
  230. font-size: 14px;
  231. font-weight: 500;
  232. cursor: pointer;
  233. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  234. box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  235. align-self: center;
  236. min-width: 100px;
  237. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  238. }
  239. .replace-btn:hover {
  240. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  241. transform: translateY(-1px);
  242. }
  243. .replace-btn:active {
  244. transform: translateY(0) scale(0.98);
  245. }
  246. .replace-btn:disabled {
  247. background: #d1d5db;
  248. color: #9ca3af;
  249. box-shadow: none;
  250. cursor: not-allowed;
  251. transform: none;
  252. }
  253. /* 右侧:Spritesheet 预览 */
  254. .export-spritesheet-box {
  255. background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
  256. }
  257. #previewImage {
  258. max-width: 100%;
  259. max-height: 100%;
  260. width: auto;
  261. height: auto;
  262. object-fit: contain;
  263. display: none;
  264. margin: auto;
  265. }
  266. #previewImage.show {
  267. display: block;
  268. }
  269. /* 悬浮下载按钮 - 右下角 */
  270. .floating-download-btn {
  271. position: absolute;
  272. bottom: 16px;
  273. right: 16px;
  274. width: 52px;
  275. height: 52px;
  276. border-radius: 50%;
  277. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  278. border: none;
  279. color: white;
  280. cursor: pointer;
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. box-shadow:
  285. 0 8px 24px rgba(102, 126, 234, 0.4),
  286. 0 4px 12px rgba(0, 0, 0, 0.15);
  287. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  288. z-index: 100;
  289. padding: 0;
  290. overflow: hidden;
  291. }
  292. .floating-download-btn::before {
  293. content: '';
  294. position: absolute;
  295. top: 50%;
  296. left: 50%;
  297. width: 0;
  298. height: 0;
  299. border-radius: 50%;
  300. background: rgba(255, 255, 255, 0.2);
  301. transform: translate(-50%, -50%);
  302. transition: width 0.6s, height 0.6s;
  303. }
  304. .floating-download-btn:hover::before {
  305. width: 200px;
  306. height: 200px;
  307. }
  308. .floating-download-btn:hover {
  309. background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
  310. box-shadow:
  311. 0 12px 32px rgba(102, 126, 234, 0.5),
  312. 0 6px 16px rgba(0, 0, 0, 0.2);
  313. transform: translateY(-3px) scale(1.08);
  314. }
  315. .floating-download-btn:active {
  316. background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
  317. transform: translateY(-1px) scale(1.03);
  318. box-shadow:
  319. 0 6px 20px rgba(102, 126, 234, 0.4),
  320. 0 4px 12px rgba(0, 0, 0, 0.15);
  321. }
  322. .floating-download-btn:disabled {
  323. opacity: 0.4;
  324. cursor: not-allowed;
  325. transform: none;
  326. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  327. background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
  328. }
  329. .floating-download-btn svg {
  330. width: 22px;
  331. height: 22px;
  332. flex-shrink: 0;
  333. position: relative;
  334. z-index: 1;
  335. filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  336. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  337. }
  338. .floating-download-btn:hover:not(:disabled) svg {
  339. transform: translateY(3px);
  340. }
  341. .floating-download-btn:active:not(:disabled) svg {
  342. transform: translateY(5px);
  343. }
  344. .preview-placeholder {
  345. position: absolute;
  346. display: flex;
  347. flex-direction: column;
  348. align-items: center;
  349. justify-content: center;
  350. gap: 16px;
  351. color: #9ca3af;
  352. }
  353. .preview-placeholder.hide {
  354. display: none;
  355. }
  356. .loading-spinner {
  357. width: 40px;
  358. height: 40px;
  359. border: 4px solid #e5e7eb;
  360. border-top-color: #667eea;
  361. border-radius: 50%;
  362. animation: spin 0.8s linear infinite;
  363. }
  364. .loading-text {
  365. font-size: 15px;
  366. font-weight: 500;
  367. color: #6b7280;
  368. }
  369. @keyframes spin {
  370. to {
  371. transform: rotate(360deg);
  372. }
  373. }
  374. /* 按钮区域 */
  375. .export-actions {
  376. padding: 20px 32px;
  377. display: flex;
  378. gap: 12px;
  379. justify-content: flex-end;
  380. align-items: center;
  381. flex-shrink: 0;
  382. border-top: 1px solid #e5e7eb;
  383. background: white;
  384. }
  385. .export-btn {
  386. padding: 12px 32px;
  387. border: none;
  388. border-radius: 10px;
  389. font-size: 15px;
  390. cursor: pointer;
  391. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  392. font-weight: 600;
  393. letter-spacing: 0.3px;
  394. min-width: 120px;
  395. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  396. display: flex;
  397. align-items: center;
  398. justify-content: center;
  399. }
  400. .export-cancel {
  401. background: white;
  402. color: #374151;
  403. border: 2px solid #d1d5db;
  404. font-weight: 600;
  405. }
  406. .export-cancel:hover {
  407. background: #f9fafb;
  408. color: #1f2937;
  409. border-color: #9ca3af;
  410. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  411. transform: translateY(-1px);
  412. }
  413. .export-cancel:active {
  414. transform: translateY(0) scale(0.98);
  415. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  416. }
  417. .export-confirm {
  418. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  419. color: white;
  420. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  421. }
  422. .export-confirm:hover {
  423. box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  424. transform: translateY(-1px);
  425. }
  426. .export-confirm:active {
  427. transform: translateY(0) scale(0.98);
  428. }
  429. .export-confirm:disabled {
  430. background: #d1d5db;
  431. color: #9ca3af;
  432. box-shadow: none;
  433. cursor: not-allowed;
  434. transform: none;
  435. }
  436. .export-confirm svg {
  437. flex-shrink: 0;
  438. transition: transform 0.2s;
  439. }
  440. .export-confirm:hover:not(:disabled) svg {
  441. transform: translateY(2px);
  442. }
  443. .export-confirm:active:not(:disabled) svg {
  444. transform: translateY(4px);
  445. }
  446. /* 替换按钮 */
  447. .replace-btn {
  448. padding: 10px 24px;
  449. border: none;
  450. border-radius: 8px;
  451. font-size: 14px;
  452. cursor: pointer;
  453. transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  454. font-weight: 500;
  455. letter-spacing: 0.3px;
  456. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  457. color: white;
  458. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  459. align-self: center;
  460. min-width: 120px;
  461. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  462. }
  463. .replace-btn:hover {
  464. box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
  465. transform: translateY(-1px);
  466. }
  467. .replace-btn:active {
  468. transform: translateY(0) scale(0.98);
  469. }
  470. .replace-btn:disabled {
  471. background: #d1d5db;
  472. color: #9ca3af;
  473. box-shadow: none;
  474. cursor: not-allowed;
  475. transform: none;
  476. }
  477. /* 提示词配置区域 */
  478. .prompt-config-section {
  479. padding: 24px 32px;
  480. border-top: 1px solid #e5e7eb;
  481. border-bottom: 1px solid #e5e7eb;
  482. background: white;
  483. display: flex;
  484. flex-direction: column;
  485. gap: 20px;
  486. }
  487. .config-row {
  488. display: flex;
  489. flex-direction: column;
  490. gap: 8px;
  491. }
  492. .config-label-wrapper {
  493. display: flex;
  494. align-items: center;
  495. gap: 8px;
  496. }
  497. .config-label {
  498. font-size: 14px;
  499. font-weight: 500;
  500. color: #374151;
  501. }
  502. .download-icon-hint {
  503. display: flex;
  504. align-items: center;
  505. justify-content: center;
  506. width: 24px;
  507. height: 24px;
  508. cursor: pointer;
  509. opacity: 0.7;
  510. transition: all 0.2s;
  511. border-radius: 4px;
  512. padding: 2px;
  513. }
  514. .download-icon-hint:hover {
  515. opacity: 1;
  516. background: rgba(102, 126, 234, 0.1);
  517. transform: scale(1.1);
  518. }
  519. .download-icon-hint svg {
  520. width: 20px;
  521. height: 20px;
  522. }
  523. .config-input {
  524. padding: 10px 12px;
  525. border: 1px solid #d1d5db;
  526. border-radius: 6px;
  527. font-size: 14px;
  528. color: #1f2937;
  529. background: white;
  530. outline: none;
  531. transition: all 0.2s;
  532. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  533. }
  534. .config-input:focus {
  535. border-color: #667eea;
  536. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  537. }
  538. .config-textarea {
  539. padding: 10px 12px;
  540. border: 1px solid #d1d5db;
  541. border-radius: 6px;
  542. font-size: 14px;
  543. color: #1f2937;
  544. background: white;
  545. outline: none;
  546. transition: all 0.2s;
  547. resize: vertical;
  548. min-height: 80px;
  549. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  550. line-height: 1.5;
  551. }
  552. .config-textarea:focus {
  553. border-color: #667eea;
  554. box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  555. }
  556. .prompt-actions {
  557. display: flex;
  558. justify-content: flex-end;
  559. align-items: center;
  560. gap: 12px;
  561. padding-top: 10px;
  562. }
  563. /* 操作按钮通用样式 */
  564. .action-btn {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. gap: 8px;
  569. padding: 12px 24px;
  570. border: none;
  571. border-radius: 10px;
  572. font-size: 15px;
  573. font-weight: 600;
  574. cursor: pointer;
  575. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  576. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  577. letter-spacing: 0.3px;
  578. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  579. position: relative;
  580. overflow: hidden;
  581. }
  582. .action-btn::before {
  583. content: '';
  584. position: absolute;
  585. top: 50%;
  586. left: 50%;
  587. width: 0;
  588. height: 0;
  589. border-radius: 50%;
  590. background: rgba(255, 255, 255, 0.3);
  591. transform: translate(-50%, -50%);
  592. transition: width 0.6s, height 0.6s;
  593. }
  594. .action-btn:hover::before {
  595. width: 300px;
  596. height: 300px;
  597. }
  598. .action-btn:hover {
  599. transform: translateY(-2px);
  600. box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  601. }
  602. .action-btn:active {
  603. transform: translateY(0) scale(0.98);
  604. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  605. }
  606. .action-btn:disabled {
  607. opacity: 0.5;
  608. cursor: not-allowed;
  609. transform: none;
  610. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  611. }
  612. .action-btn svg {
  613. width: 20px;
  614. height: 20px;
  615. flex-shrink: 0;
  616. transition: transform 0.3s;
  617. }
  618. .action-btn:hover svg {
  619. transform: scale(1.1);
  620. }
  621. /* 下载按钮 */
  622. .download-action-btn {
  623. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  624. color: white;
  625. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  626. }
  627. .download-action-btn:hover {
  628. box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  629. background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
  630. }
  631. .download-action-btn:active {
  632. background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
  633. }
  634. /* 替换按钮 */
  635. .replace-action-btn {
  636. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  637. color: white;
  638. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  639. }
  640. .replace-action-btn:hover {
  641. box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  642. background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  643. }
  644. .replace-action-btn:active {
  645. background: linear-gradient(135deg, #059669 0%, #047857 100%);
  646. }
  647. /* 响应式设计 */
  648. @media (max-width: 900px) {
  649. .export-modal {
  650. min-width: auto;
  651. width: 95%;
  652. }
  653. .export-preview-container {
  654. flex-direction: column;
  655. }
  656. .export-preview-box {
  657. min-height: 300px;
  658. }
  659. }
  660. /* 下载确认对话框 */
  661. .download-confirm-overlay {
  662. position: fixed;
  663. top: 0;
  664. left: 0;
  665. right: 0;
  666. bottom: 0;
  667. width: 100%;
  668. height: 100%;
  669. background: rgba(0, 0, 0, 0.7);
  670. display: none; /* 默认隐藏 */
  671. align-items: center;
  672. justify-content: center;
  673. z-index: 10000000;
  674. backdrop-filter: blur(4px);
  675. animation: overlayFadeIn 0.3s ease-out;
  676. }
  677. .download-confirm-modal {
  678. background: white;
  679. border-radius: 16px;
  680. padding: 0;
  681. max-width: 600px;
  682. width: 90%;
  683. max-height: 90vh;
  684. overflow: hidden;
  685. box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  686. animation: modalSlideIn 0.3s ease-out;
  687. }
  688. .download-confirm-header {
  689. display: flex;
  690. align-items: center;
  691. justify-content: space-between;
  692. padding: 24px;
  693. border-bottom: 1px solid #e5e7eb;
  694. }
  695. .download-confirm-header h3 {
  696. margin: 0;
  697. font-size: 20px;
  698. font-weight: 600;
  699. color: #111827;
  700. }
  701. .download-confirm-close {
  702. width: 36px;
  703. height: 36px;
  704. border-radius: 50%;
  705. background: #f3f4f6;
  706. border: none;
  707. color: #6b7280;
  708. cursor: pointer;
  709. display: flex;
  710. align-items: center;
  711. justify-content: center;
  712. transition: all 0.2s;
  713. padding: 0;
  714. }
  715. .download-confirm-close:hover {
  716. background: #e5e7eb;
  717. color: #374151;
  718. }
  719. .download-confirm-content {
  720. padding: 24px;
  721. display: flex;
  722. flex-direction: column;
  723. gap: 16px;
  724. }
  725. .download-option {
  726. display: flex;
  727. align-items: center;
  728. gap: 16px;
  729. padding: 20px;
  730. border: 2px solid #e5e7eb;
  731. border-radius: 12px;
  732. cursor: pointer;
  733. transition: all 0.2s;
  734. background: #f9fafb;
  735. }
  736. .download-option:hover {
  737. border-color: #667eea;
  738. background: #f0f4ff;
  739. transform: translateY(-2px);
  740. box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  741. }
  742. .download-option-icon {
  743. font-size: 32px;
  744. flex-shrink: 0;
  745. }
  746. .download-option-info {
  747. flex: 1;
  748. }
  749. .download-option-title {
  750. font-size: 16px;
  751. font-weight: 600;
  752. color: #111827;
  753. margin-bottom: 4px;
  754. }
  755. .download-option-desc {
  756. font-size: 14px;
  757. color: #6b7280;
  758. line-height: 1.5;
  759. }