/* 商店资源项样式 */ .store-item { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; cursor: pointer; width: 100%; max-width: 100%; min-height: 0; box-sizing: border-box; } .store-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2); } /* 预览图区域 */ .item-preview { position: relative; width: 100%; background: #f9fafb; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; flex-shrink: 0; min-height: 200px; } .item-preview .item-category { position: absolute; top: 8px; left: 8px; z-index: 5; display: inline-block; padding: 5px 12px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%); color: #8b5cf6; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; border: 1px solid rgba(139, 92, 246, 0.2); box-shadow: 0 1px 3px rgba(139, 92, 246, 0.1); transition: all 0.2s ease; backdrop-filter: blur(4px); } .item-preview-image { width: 100%; height: 100%; object-fit: contain; object-position: center; image-rendering: pixelated; background-color: #f9fafb; box-sizing: border-box; min-width: 0; min-height: 0; display: block; } /* FPS 控制条 */ .item-fps-control { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); padding: 8px 12px; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(100%); transition: all 0.3s ease; z-index: 10; } .store-item:hover .item-fps-control { opacity: 1; transform: translateY(0); } .item-fps-label { font-size: 12px; font-weight: 500; color: #ffffff; white-space: nowrap; flex-shrink: 0; } .item-fps-slider { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); outline: none; -webkit-appearance: none; appearance: none; } .item-fps-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .item-fps-slider::-webkit-slider-thumb:hover { background: #7c3aed; transform: scale(1.1); } .item-fps-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #8b5cf6; cursor: pointer; border: none; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .item-fps-slider::-moz-range-thumb:hover { background: #7c3aed; transform: scale(1.1); } .item-fps-display { font-size: 12px; font-weight: 600; color: #ffffff; background: rgba(139, 92, 246, 0.3); padding: 4px 8px; border-radius: 4px; min-width: 50px; text-align: center; font-family: 'Courier New', monospace; flex-shrink: 0; } /* 信息区域 */ .item-info { padding: 10px 12px; width: 100%; flex: 0 0 auto; display: flex; flex-direction: column; box-sizing: border-box; } .item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .item-name { font-size: 16px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; } .item-frames { display: flex; align-items: center; } /* 操作区域 */ .item-actions { padding: 10px 12px; width: 100%; border-top: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; box-sizing: border-box; } .item-price { font-size: 18px; font-weight: 700; color: #8b5cf6; text-align: center; display: flex; align-items: center; justify-content: center; } .item-buy-button { width: 100%; padding: 8px; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .item-buy-button:hover { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); } .item-buy-button:active { transform: translateY(0); } .item-buy-button.item-button-added { background: linear-gradient(135deg, #10b981 0%, #059669 100%); cursor: pointer; } .item-buy-button.item-button-added:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .item-buy-button.item-button-added:active { transform: translateY(0); }