| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268 |
- /* 确保 body 和 html 占满整个 iframe */
- html, body {
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- overflow: hidden;
- background: transparent;
- }
- /* 弹出框遮罩层 */
- .export-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.7);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 999999;
- backdrop-filter: blur(4px);
- animation: overlayFadeIn 0.3s ease-out;
- margin: 0;
- padding: 0;
- }
- /* 关闭按钮(在弹窗右上角) */
- .modal-close-btn {
- position: absolute;
- width: 44px;
- height: 44px;
- border-radius: 50%;
- background: white;
- border: 2px solid #e5e7eb;
- color: #6b7280;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
- z-index: 10;
- padding: 0;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- top: -22px;
- right: -22px;
- }
- .modal-close-btn:hover {
- background: #f9fafb;
- color: #1f2937;
- border-color: #d1d5db;
- transform: scale(1.1);
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
- }
- .modal-close-btn:active {
- transform: scale(0.95);
- }
- .modal-close-btn svg {
- width: 20px;
- height: 20px;
- }
- @keyframes overlayFadeIn {
- from {
- background: rgba(0, 0, 0, 0);
- backdrop-filter: blur(0);
- }
- to {
- background: rgba(0, 0, 0, 0.7);
- backdrop-filter: blur(4px);
- }
- }
- /* 弹出框容器 */
- .export-modal {
- background: white;
- border-radius: 16px;
- box-shadow:
- 0 20px 60px rgba(0, 0, 0, 0.3),
- 0 0 0 1px rgba(0, 0, 0, 0.05);
- min-width: 800px;
- max-width: 1200px;
- width: 90%;
- max-height: 90vh;
- display: flex;
- flex-direction: column;
- animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
- overflow: visible;
- position: relative;
- z-index: 1000000;
- margin: auto;
- }
- @keyframes modalSlideIn {
- from {
- opacity: 0;
- transform: translateY(-30px) scale(0.95);
- }
- to {
- opacity: 1;
- transform: translateY(0) scale(1);
- }
- }
- /* 图片预览容器 - 左右两个图框 */
- .export-preview-container {
- width: 100%;
- min-height: 500px;
- max-height: 70vh;
- display: flex;
- gap: 32px;
- padding: 32px;
- box-sizing: border-box;
- background: #fafbfc;
- }
- /* 单列预览容器(仅显示Spritesheet) */
- .export-preview-container.export-preview-single {
- justify-content: center;
- }
- .export-preview-container.export-preview-single .export-spritesheet-box {
- max-width: 800px;
- width: 100%;
- }
- /* 预览图框 - 左右各占一半 */
- .export-preview-box {
- flex: 1;
- min-height: 400px;
- background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
- border: 2px solid #e5e7eb;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- overflow: auto;
- box-sizing: border-box;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
- transition: box-shadow 0.2s;
- }
- .export-preview-box:hover {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
- }
- /* 右侧 Spritesheet 区域容器 */
- .export-spritesheet-section {
- flex: 1;
- display: flex;
- flex-direction: column;
- }
- /* 左侧:参考图上传区域 */
- .export-reference-section {
- flex: 1;
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .export-reference-box {
- cursor: pointer;
- transition: border-color 0.2s;
- flex: 1;
- }
- .export-reference-box:hover {
- border-color: #667eea;
- }
- .reference-upload-area {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 12px;
- color: #9ca3af;
- pointer-events: none;
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .reference-upload-area.hide {
- display: none;
- }
- .upload-icon {
- font-size: 48px;
- font-weight: 300;
- color: #d1d5db;
- line-height: 1;
- }
- .upload-text {
- font-size: 14px;
- font-weight: 500;
- }
- .reference-image-wrapper {
- position: relative;
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .reference-image {
- max-width: 100%;
- max-height: 100%;
- object-fit: contain;
- }
- .reference-remove-btn {
- position: absolute;
- top: 12px;
- right: 12px;
- width: 32px;
- height: 32px;
- border-radius: 50%;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(4px);
- border: none;
- color: white;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s;
- z-index: 10;
- padding: 0;
- }
- .reference-remove-btn:hover {
- background: rgba(239, 68, 68, 0.9);
- transform: scale(1.1);
- box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
- }
- .reference-remove-btn:active {
- transform: scale(0.95);
- }
- .reference-remove-btn svg {
- width: 16px;
- height: 16px;
- }
- /* 替换按钮 */
- .replace-btn {
- padding: 10px 24px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- border: none;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
- box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
- align-self: center;
- min-width: 100px;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- }
- .replace-btn:hover {
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
- transform: translateY(-1px);
- }
- .replace-btn:active {
- transform: translateY(0) scale(0.98);
- }
- .replace-btn:disabled {
- background: #d1d5db;
- color: #9ca3af;
- box-shadow: none;
- cursor: not-allowed;
- transform: none;
- }
- /* 右侧:Spritesheet 预览 */
- .export-spritesheet-box {
- background: repeating-conic-gradient(#f3f4f6 0% 25%, white 0% 50%) 50% / 20px 20px;
- }
- #previewImage {
- max-width: 100%;
- max-height: 100%;
- width: auto;
- height: auto;
- object-fit: contain;
- display: none;
- margin: auto;
- }
- #previewImage.show {
- display: block;
- }
- /* 悬浮按钮组 - 右下角 */
- .floating-btn-group {
- position: absolute;
- bottom: 16px;
- right: 16px;
- display: flex;
- flex-direction: column;
- gap: 10px;
- z-index: 100;
- }
- /* 悬浮AI按钮 */
- .floating-ai-btn {
- width: 46px;
- height: 46px;
- border-radius: 50%;
- background: linear-gradient(135deg, #10b981 0%, #059669 100%);
- border: none;
- color: white;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- box-shadow:
- 0 6px 20px rgba(16, 185, 129, 0.4),
- 0 3px 10px rgba(0, 0, 0, 0.15);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- padding: 0;
- overflow: hidden;
- }
- .floating-ai-btn:hover:not(:disabled) {
- background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
- box-shadow:
- 0 10px 28px rgba(16, 185, 129, 0.5),
- 0 5px 14px rgba(0, 0, 0, 0.2);
- transform: translateY(-3px) scale(1.08);
- }
- .floating-ai-btn:active:not(:disabled) {
- transform: translateY(-1px) scale(1.03);
- }
- .floating-ai-btn:disabled {
- opacity: 0.4;
- cursor: not-allowed;
- transform: none;
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
- background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
- }
- .floating-ai-btn svg {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
- }
- .floating-ai-btn.active {
- background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
- box-shadow:
- 0 0 0 3px rgba(16, 185, 129, 0.3),
- 0 6px 20px rgba(16, 185, 129, 0.4);
- }
- /* 悬浮下载按钮 */
- .floating-download-btn {
- width: 52px;
- height: 52px;
- border-radius: 50%;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- border: none;
- color: white;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- box-shadow:
- 0 8px 24px rgba(102, 126, 234, 0.4),
- 0 4px 12px rgba(0, 0, 0, 0.15);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- padding: 0;
- overflow: hidden;
- }
- .floating-download-btn::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- width: 0;
- height: 0;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.2);
- transform: translate(-50%, -50%);
- transition: width 0.6s, height 0.6s;
- }
- .floating-download-btn:hover::before {
- width: 200px;
- height: 200px;
- }
- .floating-download-btn:hover {
- background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
- box-shadow:
- 0 12px 32px rgba(102, 126, 234, 0.5),
- 0 6px 16px rgba(0, 0, 0, 0.2);
- transform: translateY(-3px) scale(1.08);
- }
- .floating-download-btn:active {
- background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
- transform: translateY(-1px) scale(1.03);
- box-shadow:
- 0 6px 20px rgba(102, 126, 234, 0.4),
- 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- .floating-download-btn:disabled {
- opacity: 0.4;
- cursor: not-allowed;
- transform: none;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
- }
- .floating-download-btn svg {
- width: 22px;
- height: 22px;
- flex-shrink: 0;
- position: relative;
- z-index: 1;
- filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
- transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- }
- .floating-download-btn:hover:not(:disabled) svg {
- transform: translateY(3px);
- }
- .floating-download-btn:active:not(:disabled) svg {
- transform: translateY(5px);
- }
- .preview-placeholder {
- position: absolute;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 16px;
- color: #9ca3af;
- }
- .preview-placeholder.hide {
- display: none;
- }
- .loading-spinner {
- width: 40px;
- height: 40px;
- border: 4px solid #e5e7eb;
- border-top-color: #667eea;
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
- }
- .loading-text {
- font-size: 15px;
- font-weight: 500;
- color: #6b7280;
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- /* 按钮区域 */
- .export-actions {
- padding: 20px 32px;
- display: flex;
- gap: 12px;
- justify-content: flex-end;
- align-items: center;
- flex-shrink: 0;
- border-top: 1px solid #e5e7eb;
- background: white;
- }
- .export-btn {
- padding: 12px 32px;
- border: none;
- border-radius: 10px;
- font-size: 15px;
- cursor: pointer;
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
- font-weight: 600;
- letter-spacing: 0.3px;
- min-width: 120px;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .export-cancel {
- background: white;
- color: #374151;
- border: 2px solid #d1d5db;
- font-weight: 600;
- }
- .export-cancel:hover {
- background: #f9fafb;
- color: #1f2937;
- border-color: #9ca3af;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- transform: translateY(-1px);
- }
- .export-cancel:active {
- transform: translateY(0) scale(0.98);
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
- }
- .export-confirm {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
- }
- .export-confirm:hover {
- box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
- transform: translateY(-1px);
- }
- .export-confirm:active {
- transform: translateY(0) scale(0.98);
- }
- .export-confirm:disabled {
- background: #d1d5db;
- color: #9ca3af;
- box-shadow: none;
- cursor: not-allowed;
- transform: none;
- }
- .export-confirm svg {
- flex-shrink: 0;
- transition: transform 0.2s;
- }
- .export-confirm:hover:not(:disabled) svg {
- transform: translateY(2px);
- }
- .export-confirm:active:not(:disabled) svg {
- transform: translateY(4px);
- }
- /* 替换按钮 */
- .replace-btn {
- padding: 10px 24px;
- border: none;
- border-radius: 8px;
- font-size: 14px;
- cursor: pointer;
- transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
- font-weight: 500;
- letter-spacing: 0.3px;
- background: linear-gradient(135deg, #10b981 0%, #059669 100%);
- color: white;
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
- align-self: center;
- min-width: 120px;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- }
- .replace-btn:hover {
- box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
- transform: translateY(-1px);
- }
- .replace-btn:active {
- transform: translateY(0) scale(0.98);
- }
- .replace-btn:disabled {
- background: #d1d5db;
- color: #9ca3af;
- box-shadow: none;
- cursor: not-allowed;
- transform: none;
- }
- /* 提示词配置区域 */
- .prompt-config-section {
- padding: 24px 32px;
- border-top: 1px solid #e5e7eb;
- border-bottom: 1px solid #e5e7eb;
- background: white;
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
- .config-row {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .config-label-wrapper {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .config-label {
- font-size: 14px;
- font-weight: 500;
- color: #374151;
- }
- .download-icon-hint {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- cursor: pointer;
- opacity: 0.7;
- transition: all 0.2s;
- border-radius: 4px;
- padding: 2px;
- }
- .download-icon-hint:hover {
- opacity: 1;
- background: rgba(102, 126, 234, 0.1);
- transform: scale(1.1);
- }
- .download-icon-hint svg {
- width: 20px;
- height: 20px;
- }
- .config-input {
- padding: 10px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- font-size: 14px;
- color: #1f2937;
- background: white;
- outline: none;
- transition: all 0.2s;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- }
- .config-input:focus {
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- .config-textarea {
- padding: 10px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- font-size: 14px;
- color: #1f2937;
- background: white;
- outline: none;
- transition: all 0.2s;
- resize: vertical;
- min-height: 80px;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- line-height: 1.5;
- }
- .config-textarea:focus {
- border-color: #667eea;
- box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
- }
- .prompt-actions {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- gap: 12px;
- padding-top: 10px;
- }
- /* 操作按钮通用样式 */
- .action-btn {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 12px 24px;
- border: none;
- border-radius: 10px;
- font-size: 15px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
- letter-spacing: 0.3px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- position: relative;
- overflow: hidden;
- }
- .action-btn::before {
- content: '';
- position: absolute;
- top: 50%;
- left: 50%;
- width: 0;
- height: 0;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.3);
- transform: translate(-50%, -50%);
- transition: width 0.6s, height 0.6s;
- }
- .action-btn:hover::before {
- width: 300px;
- height: 300px;
- }
- .action-btn:hover {
- transform: translateY(-2px);
- box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
- }
- .action-btn:active {
- transform: translateY(0) scale(0.98);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- }
- .action-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- transform: none;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- }
- .action-btn svg {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- transition: transform 0.3s;
- }
- .action-btn:hover svg {
- transform: scale(1.1);
- }
- /* 下载按钮 */
- .download-action-btn {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
- }
- .download-action-btn:hover {
- box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
- background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
- }
- .download-action-btn:active {
- background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
- }
- /* 替换按钮 */
- .replace-action-btn {
- background: linear-gradient(135deg, #10b981 0%, #059669 100%);
- color: white;
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
- }
- .replace-action-btn:hover {
- box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
- background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
- }
- .replace-action-btn:active {
- background: linear-gradient(135deg, #059669 0%, #047857 100%);
- }
- /* 响应式设计 */
- @media (max-width: 900px) {
- .export-modal {
- min-width: auto;
- width: 95%;
- }
-
- .export-preview-container {
- flex-direction: column;
- }
-
- .export-preview-box {
- min-height: 300px;
- }
- }
- /* 下载确认对话框 */
- .download-confirm-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.7);
- display: none; /* 默认隐藏 */
- align-items: center;
- justify-content: center;
- z-index: 10000000;
- backdrop-filter: blur(4px);
- animation: overlayFadeIn 0.3s ease-out;
- }
- .download-confirm-modal {
- background: white;
- border-radius: 16px;
- padding: 0;
- max-width: 600px;
- width: 90%;
- max-height: 90vh;
- overflow: visible;
- overflow-y: auto;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
- animation: modalSlideIn 0.3s ease-out;
- /* 确保弹窗内容正确显示 */
- display: flex;
- flex-direction: column;
- }
- .download-confirm-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 24px;
- border-bottom: 1px solid #e5e7eb;
- flex-shrink: 0;
- }
- .download-confirm-header h3 {
- margin: 0;
- font-size: 20px;
- font-weight: 600;
- color: #111827;
- }
- .download-confirm-close {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- background: #f3f4f6;
- border: none;
- color: #6b7280;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s;
- padding: 0;
- }
- .download-confirm-close:hover {
- background: #e5e7eb;
- color: #374151;
- }
- .download-confirm-content {
- padding: 24px;
- display: flex;
- flex-direction: column;
- gap: 16px;
- flex-shrink: 0;
- }
- .download-option {
- display: flex;
- align-items: center;
- gap: 16px;
- padding: 20px;
- border: 2px solid #e5e7eb;
- border-radius: 12px;
- cursor: pointer;
- transition: all 0.2s;
- background: #f9fafb;
- }
- .download-option:hover {
- border-color: #667eea;
- background: #f0f4ff;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
- }
- .download-option-icon {
- width: 32px;
- height: 32px;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #667eea;
- }
- .download-option-icon svg {
- width: 100%;
- height: 100%;
- }
- .download-option-info {
- flex: 1;
- }
- .download-option-title {
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- margin-bottom: 4px;
- }
- .download-option-desc {
- font-size: 14px;
- color: #6b7280;
- line-height: 1.5;
- }
- .download-option-price {
- margin-top: 8px;
- font-size: 16px;
- font-weight: 700;
- color: #667eea;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
- padding: 6px 12px;
- border-radius: 8px;
- display: inline-block;
- border: 2px solid rgba(102, 126, 234, 0.3);
- box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
- transition: all 0.3s ease;
- }
- .download-option:hover .download-option-price {
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
- border-color: rgba(102, 126, 234, 0.5);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
- transform: scale(1.05);
- }
- /* AI生图队列区域 */
- .ai-queue-section {
- padding: 0 20px 16px;
- }
- .ai-queue-title {
- font-size: 13px;
- font-weight: 600;
- color: #667eea;
- margin-bottom: 12px;
- display: flex;
- align-items: center;
- gap: 6px;
- }
- .ai-queue-title::before {
- content: '';
- width: 3px;
- height: 14px;
- background: linear-gradient(135deg, #667eea, #764ba2);
- border-radius: 2px;
- }
- .ai-queue-list {
- display: flex;
- gap: 12px;
- overflow-x: auto;
- overflow-y: hidden;
- padding-bottom: 10px;
- scroll-behavior: smooth;
- -webkit-overflow-scrolling: touch;
- }
- .ai-queue-list::-webkit-scrollbar {
- height: 6px;
- }
- .ai-queue-list::-webkit-scrollbar-track {
- background: #f1f1f1;
- border-radius: 3px;
- }
- .ai-queue-list::-webkit-scrollbar-thumb {
- background: linear-gradient(135deg, #667eea, #764ba2);
- border-radius: 3px;
- }
- .ai-queue-list::-webkit-scrollbar-thumb:hover {
- background: linear-gradient(135deg, #5a6fd6, #6a4190);
- }
- .ai-queue-item {
- flex-shrink: 0;
- width: 100px;
- height: 100px;
- border-radius: 12px;
- overflow: hidden;
- position: relative;
- background: #f8fafc;
- border: 2px solid #e5e7eb;
- cursor: pointer;
- transition: all 0.3s;
- }
- .ai-queue-item:hover {
- border-color: #667eea;
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
- }
- .ai-queue-item.rendering {
- border-color: #667eea;
- }
- .ai-queue-item.completed {
- border-color: #10b981;
- }
- .ai-queue-item.failed {
- border-color: #ef4444;
- }
- .ai-queue-item-preview {
- width: 100%;
- height: 100%;
- object-fit: cover;
- filter: blur(4px) brightness(0.8);
- }
- .ai-queue-item.completed .ai-queue-item-preview {
- filter: none;
- }
- .ai-queue-item-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- background: rgba(0, 0, 0, 0.3);
- }
- .ai-queue-item.completed .ai-queue-item-overlay {
- background: transparent;
- opacity: 0;
- transition: opacity 0.2s;
- }
- .ai-queue-item.completed:hover .ai-queue-item-overlay {
- opacity: 1;
- background: rgba(0, 0, 0, 0.5);
- }
- .ai-queue-item-spinner {
- width: 24px;
- height: 24px;
- border: 3px solid rgba(255, 255, 255, 0.3);
- border-top-color: white;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- .ai-queue-item-status {
- font-size: 10px;
- color: white;
- margin-top: 6px;
- font-weight: 500;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
- }
- .ai-queue-item-icon {
- font-size: 20px;
- }
- .ai-queue-item-actions {
- display: flex;
- gap: 4px;
- }
- .ai-queue-item-action {
- width: 28px;
- height: 28px;
- border-radius: 50%;
- border: none;
- background: white;
- color: #667eea;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s;
- }
- .ai-queue-item-action:hover {
- background: #667eea;
- color: white;
- transform: scale(1.1);
- }
- /* AI生图任务飞走动画 */
- .ai-task-fly-animation {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- padding: 12px 20px;
- border-radius: 12px;
- box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .ai-task-fly-animation .fly-content {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 14px;
- font-weight: 600;
- white-space: nowrap;
- }
- .ai-task-fly-animation svg {
- fill: rgba(255, 255, 255, 0.3);
- animation: sparkle 0.3s ease-in-out infinite alternate;
- }
- @keyframes sparkle {
- from {
- filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
- }
- to {
- filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
- }
- }
- /* 图片放大预览弹窗 */
- .image-preview-modal {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 200000;
- display: flex;
- align-items: center;
- justify-content: center;
- opacity: 0;
- transition: opacity 0.3s ease;
- }
- .image-preview-modal.show {
- opacity: 1;
- }
- .image-preview-modal-backdrop {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.85);
- backdrop-filter: blur(8px);
- }
- .image-preview-modal-content {
- position: relative;
- max-width: 90vw;
- max-height: 90vh;
- transform: scale(0.9);
- transition: transform 0.3s ease;
- }
- .image-preview-modal.show .image-preview-modal-content {
- transform: scale(1);
- }
- .image-preview-modal-content img {
- max-width: 100%;
- max-height: 85vh;
- border-radius: 12px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
- }
- .image-preview-modal-close {
- position: absolute;
- top: -40px;
- right: 0;
- width: 36px;
- height: 36px;
- border: none;
- background: rgba(255, 255, 255, 0.2);
- color: white;
- font-size: 24px;
- border-radius: 50%;
- cursor: pointer;
- transition: all 0.2s;
- display: flex;
- align-items: center;
- justify-content: center;
- line-height: 1;
- }
- .image-preview-modal-close:hover {
- background: rgba(255, 255, 255, 0.3);
- transform: scale(1.1);
- }
- .image-preview-modal-download {
- position: absolute;
- bottom: -50px;
- left: 50%;
- transform: translateX(-50%);
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 24px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- text-decoration: none;
- border-radius: 25px;
- font-size: 14px;
- font-weight: 600;
- transition: all 0.2s;
- box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
- }
- .image-preview-modal-download:hover {
- transform: translateX(-50%) translateY(-2px);
- box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
- }
|