.index { font-size: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 100vh; min-width: 100vw; margin: 0; padding: 0; background-image: url('../../assets/images/Figure.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; } .button-container { position: absolute; bottom: 20vh; left: 50%; transform: translateX(-50%); z-index: 10; } /* Loading 遮罩层 */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } /* Loading 容器样式 */ .loading-container { text-align: center; } .loading-title { font-size: 48px; font-weight: bold; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); margin: 30px 0 15px 0; display: block; } .loading-desc { font-size: 28px; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); margin: 0; display: block; } /* Error 遮罩层 */ .error-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } /* Error 容器样式 */ .error-container { text-align: center; } .error-icon { font-size: 80px; margin-bottom: 30px; display: block; animation: pulse 2s infinite; } .error-title { font-size: 48px; font-weight: bold; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); margin: 30px 0 15px 0; display: block; } .error-desc { font-size: 32px; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); margin: 0 0 30px 0; display: block; line-height: 1.5; } .error-hint { font-size: 24px; color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); margin: 0; display: block; animation: blink 2s infinite; } @keyframes blink { 0%, 50% { opacity: 0.6; } 100% { opacity: 1; } } @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } } /* 通用步骤容器 */ .step-container { background: white; border-radius: 24rpx; box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1); padding: 80rpx 60rpx; text-align: center; width: 100%; max-width: 600rpx; } /* 标题样式 */ .step-title { font-size: 48rpx; font-weight: bold; color: #333; margin-bottom: 30rpx; display: block; } /* 描述文字 */ .step-desc { font-size: 28rpx; color: #666; margin-bottom: 60rpx; line-height: 1.6; display: block; } /* 上传按钮 */ .upload-btn { background: linear-gradient(45deg, #667eea, #764ba2); color: white; border: none; border-radius: 50rpx; padding: 30rpx 80rpx; font-size: 32rpx; font-weight: bold; box-shadow: 0 6rpx 20rpx rgba(102, 126, 234, 0.4); min-width: 300rpx; } .upload-btn:active { transform: translateY(2rpx); box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3); } /* 加载动画 */ .loading-spinner { width: 80px; height: 80px; border: 6px solid rgba(255, 255, 255, 0.2); border-top: 6px solid #ff6b9d; border-right: 6px solid #ff9a56; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 30px; box-shadow: 0 0 30px rgba(255, 107, 157, 0.3); } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* 全屏预览容器 */ .fullscreen-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: linear-gradient(135deg, #2c3e50, #34495e); background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%); display: flex; flex-direction: column; z-index: 1000; } /* 全屏头部 */ .fullscreen-header { display: flex; justify-content: space-between; align-items: center; padding: 30rpx 40rpx; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10rpx); color: white; position: absolute; top: 0; left: 0; right: 0; z-index: 1001; width: 100%; box-sizing: border-box; } .fullscreen-title { font-size: 32rpx; font-weight: 500; color: rgba(255, 255, 255, 0.9); flex: 1; text-align: left; text-shadow: 0 2px 8rpx rgba(0, 0, 0, 0.5); } .close-btn { width: 60rpx; height: 60rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: white; border: none; font-size: 40rpx; font-weight: bold; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; flex-shrink: 0; margin-left: auto; } .close-btn:active { background: rgba(255, 255, 255, 0.3); } /* 全屏滑动器 */ .fullscreen-swiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .swiper-item { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; box-sizing: border-box; position: relative; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%); } .swiper-item::before { content: ""; position: absolute; top: 20rpx; left: 20rpx; right: 20rpx; bottom: 160rpx; border-radius: 24rpx; border: 4rpx solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 1rpx rgba(255, 255, 255, 0.1), inset 0 0 40rpx rgba(255, 255, 255, 0.05), 0 20rpx 60rpx rgba(0, 0, 0, 0.3); pointer-events: none; z-index: 1; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100% ); } .fullscreen-image { width: calc(100% - 40rpx); height: calc(100% - 180rpx); border-radius: 20rpx; position: relative; z-index: 2; margin-top: 20rpx; object-fit: cover; box-shadow: 0 15rpx 50rpx rgba(0, 0, 0, 0.4); } /* 全屏底部 */ .fullscreen-footer { padding: 40rpx; background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; position: relative; z-index: 1001; } /* 重新生成按钮 */ .restart-btn { background: linear-gradient(45deg, #52c41a, #73d13d); color: white; border: none; border-radius: 50rpx; padding: 24rpx 60rpx; font-size: 30rpx; font-weight: bold; box-shadow: 0 4rpx 16rpx rgba(82, 196, 26, 0.3); } .restart-btn:active { transform: translateY(2rpx); } /* 错误描述 */ .error-desc { font-size: 26rpx; color: #ff4d4f; margin-bottom: 50rpx; background: #fff2f0; border: 1rpx solid #ffccc7; border-radius: 12rpx; padding: 30rpx; line-height: 1.5; display: block; } /* 重试按钮 */ .retry-btn { background: linear-gradient(45deg, #ff4d4f, #ff7875); color: white; border: none; border-radius: 50rpx; padding: 24rpx 60rpx; font-size: 30rpx; font-weight: bold; box-shadow: 0 4rpx 16rpx rgba(255, 77, 79, 0.3); } .retry-btn:active { transform: translateY(2rpx); } .create-button { background: linear-gradient(135deg, #ff6b9d, #ff9a56, #ffd93d); border: none; border-radius: 72px; padding: 24px 108px; font-size: 36px; font-weight: bold; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4), 0 4px 15px rgba(255, 154, 86, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; transform: scale(1); } .create-button::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent ); transition: left 0.5s; } .create-button:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5), 0 6px 20px rgba(255, 154, 86, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4); filter: brightness(1.1); } .create-button:hover::before { left: 100%; } .create-button:active { transform: scale(0.98) translateY(1px); box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3), 0 2px 8px rgba(255, 154, 86, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.2); } .create-button::after { content: "✨"; position: absolute; top: -5px; right: -5px; font-size: 16px; animation: sparkle 2s infinite; pointer-events: none; } /* 添加闪烁动画 */ @keyframes sparkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } /* 下载区域样式 */ .download-section { position: absolute; bottom: 60rpx; left: 50%; transform: translateX(-50%); width: 100%; padding: 0 40rpx; box-sizing: border-box; z-index: 1001; text-align: center; } /* 下载按钮样式 */ .download-btn { background: linear-gradient(135deg, #ff6b9d, #ff9a56); border: none; border-radius: 50rpx; padding: 20rpx 40rpx; font-size: 28rpx; font-weight: bold; color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); box-shadow: 0 8rpx 25rpx rgba(255, 107, 157, 0.4); min-width: 320rpx; transition: all 0.3s ease; position: relative; overflow: hidden; } .download-btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent ); transition: left 0.5s; } .download-btn:hover::before { left: 100%; } .download-btn:active { transform: translateY(2rpx); box-shadow: 0 4rpx 15rpx rgba(255, 107, 157, 0.3); } .download-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* 下载提示文字 */ .download-tip { font-size: 24rpx; color: rgba(255, 255, 255, 0.8); margin-top: 20rpx; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); line-height: 1.4; display: block; }