/* 商店页面样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { margin: 0; padding: 0; height: 100vh; overflow-x: hidden; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; background: linear-gradient(135deg, #fdfcfb 0%, #f7f7f8 50%, #fdfcfb 100%); } .store-root { width: 100%; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; } .store-container { flex: 1; display: flex; flex-direction: column; padding: 16px; overflow-x: hidden; min-width: 0; width: 100%; box-sizing: border-box; } /* 搜索栏 */ .store-header { margin-bottom: 16px; } .search-bar { display: flex; gap: 10px; max-width: 600px; } .search-input { flex: 1; padding: 12px 16px; border: 2px solid rgba(139, 92, 246, 0.2); border-radius: 8px; font-size: 14px; outline: none; transition: all 0.3s ease; background: #ffffff; } .search-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); } .search-button { padding: 12px 20px; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .search-button:hover { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); } .search-button:active { transform: translateY(0); } /* 分类栏 */ .category-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; } .category-item { padding: 10px 20px; background: #ffffff; border: 2px solid rgba(139, 92, 246, 0.2); border-radius: 8px; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; transition: all 0.3s ease; } .category-item:hover { border-color: #8b5cf6; color: #8b5cf6; transform: translateY(-1px); } .category-item.active { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); border-color: #8b5cf6; color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); } /* 资源网格 - 瀑布流布局 */ .resources-grid { flex: 1; position: relative; overflow-x: hidden; overflow-y: auto; padding: 0; min-width: 0; width: 100%; box-sizing: border-box; } .resources-grid-masonry { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; } .masonry-column { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 16px; } .resources-grid::-webkit-scrollbar { width: 8px; } .resources-grid::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 4px; } .resources-grid::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 4px; } .resources-grid::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); } /* 空状态 */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #9ca3af; } .empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; } .empty-text { font-size: 18px; font-weight: 500; } /* 加载状态 */ .loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #9ca3af; } .loading-spinner { width: 40px; height: 40px; border: 4px solid rgba(139, 92, 246, 0.1); border-top-color: #8b5cf6; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; } @keyframes spin { to { transform: rotate(360deg); } } .loading-text { font-size: 16px; font-weight: 500; } /* 预览弹窗 */ .preview-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(4px); } .preview-modal-content { background: #ffffff; border-radius: 16px; width: 90%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } .preview-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); } .preview-modal-title { font-size: 20px; font-weight: 600; color: #1f2937; } .preview-modal-close { background: none; border: none; cursor: pointer; padding: 8px; color: #6b7280; transition: all 0.2s ease; border-radius: 4px; display: flex; align-items: center; justify-content: center; } .preview-modal-close:hover { background: rgba(0, 0, 0, 0.05); color: #1f2937; } .preview-modal-body { flex: 1; padding: 24px; display: flex; align-items: center; justify-content: center; overflow: auto; } .preview-animation-container { width: 100%; max-width: 600px; display: flex; align-items: center; justify-content: center; background: #f9fafb; border-radius: 12px; padding: 40px; min-height: 400px; } .preview-animation-image { max-width: 100%; max-height: 500px; object-fit: contain; image-rendering: pixelated; } /* 预览弹窗底部控制栏 */ .preview-modal-footer { padding: 16px 24px; border-top: 1px solid rgba(0, 0, 0, 0.1); background: #f9fafb; display: flex; align-items: center; justify-content: center; } .fps-control { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 400px; } .fps-label { font-size: 14px; font-weight: 500; color: #6b7280; white-space: nowrap; } .fps-slider { flex: 1; height: 6px; border-radius: 3px; background: #e5e7eb; outline: none; -webkit-appearance: none; appearance: none; } .fps-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #8b5cf6; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .fps-slider::-webkit-slider-thumb:hover { background: #7c3aed; transform: scale(1.1); } .fps-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #8b5cf6; cursor: pointer; border: none; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .fps-slider::-moz-range-thumb:hover { background: #7c3aed; transform: scale(1.1); } .fps-display { font-size: 14px; font-weight: 600; color: #1f2937; background: #ffffff; padding: 6px 12px; border-radius: 6px; min-width: 60px; text-align: center; border: 1px solid #e5e7eb; font-family: 'Courier New', monospace; image-rendering: pixelated; }