.hero-card { background: var(--primary-gradient); border-radius: var(--radius-xl); padding: 28px 24px; color: white; margin-bottom: 20px; position: relative; overflow: hidden; } .hero-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; } .hero-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; } .hero-card p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; position: relative; z-index: 1; } /* 搜索框 */ .search-box { position: relative; z-index: 1; cursor: pointer; } .search-input-wrapper { background: rgba(255,255,255,0.35); border-radius: var(--radius-full); padding: 14px 20px; display: flex; align-items: center; transition: all 0.2s; } .search-input-wrapper svg { margin-right: 10px; } .search-input-wrapper:hover { background: rgba(255,255,255,0.25); } .search-input-wrapper svg { width: 20px; height: 20px; opacity: 0.8; } .search-placeholder { font-size: 15px; opacity: 0.9; } /* 特性标签 */ .hero-features { display: flex; margin-top: 16px; flex-wrap: wrap; position: relative; z-index: 1; } .hero-feature { display: flex; align-items: center; margin-right: 16px; margin-bottom: 8px; font-size: 12px; opacity: 0.85; } .hero-feature svg { width: 16px; height: 16px; margin-right: 6px; } /* 操作栏 */ .action-bar { display: flex; gap: 12px; margin-bottom: 20px; } .action-bar .btn { flex: 1; } /* 商品网格 */ .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; position: relative; } .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } /* 保证金商家商品 - 金色边框 */ .product-card.deposit-merchant { border: 2px solid #f59e0b; box-shadow: 0 0 0 1px #f59e0b, var(--shadow-sm); } .product-card.deposit-merchant:hover { box-shadow: 0 0 0 1px #f59e0b, var(--shadow-md); } /* 保证金商家徽章 */ .deposit-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius); display: flex; align-items: center; gap: 4px; z-index: 5; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); } .deposit-badge svg { width: 12px; height: 12px; } /* 认证卖家徽章 - 蓝色渐变 */ .verified-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius); display: flex; align-items: center; gap: 4px; z-index: 5; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); } .verified-badge svg { width: 12px; height: 12px; } /* 双重认证徽章 - 当同时有保证金和认证时 */ .dual-badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #fbbf24 0%, #8b5cf6 50%, #3b82f6 100%); background-size: 200% 200%; color: white; font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius); display: flex; align-items: center; gap: 4px; z-index: 5; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4); animation: shimmer 3s ease infinite; } .dual-badge svg { width: 12px; height: 12px; } /* 保证金标签在左下角 */ .deposit-badge-bottom { position: absolute; bottom: 8px; left: 8px; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: white; font-size: 9px; font-weight: 600; padding: 3px 6px; border-radius: 6px; display: flex; align-items: center; gap: 3px; z-index: 5; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); } .deposit-badge-bottom svg { width: 10px; height: 10px; } /* 认证标签在左上角 */ .verified-badge-top { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; font-size: 9px; font-weight: 600; padding: 3px 6px; border-radius: 6px; display: flex; align-items: center; gap: 3px; z-index: 5; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); } .verified-badge-top svg { width: 10px; height: 10px; } /* 双重认证卡片特殊边框 */ .product-card.dual-verified { border: 2px solid transparent; background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #fbbf24, #8b5cf6, #3b82f6) border-box; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2); } @keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } } .product-image { position: relative; width: 100%; padding-bottom: 56.25%;/* 16:9 */ overflow: hidden; background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); } .product-image.no-image { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); } .default-image-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; } .default-image-placeholder svg { width: 48px; height: 48px; margin-bottom: 8px; opacity: 0.5; } .default-image-placeholder span { font-size: 12px; opacity: 0.7; } .product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .product-info { padding: 12px; } .product-title { font-size: 14px; font-weight: 500; color: var(--gray-900); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .product-tags { display: flex; gap: 6px; flex-wrap: wrap; } .product-tag { font-size: 11px; padding: 2px 8px; background: var(--primary-light); color: var(--primary); border-radius: 4px; font-weight: 500; } .product-price { font-size: 16px; font-weight: 700; color: var(--danger); white-space: nowrap; } /* 筛选栏 */ .filter-bar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; } .filter-bar::-webkit-scrollbar { display: none; } .filter-tag { flex-shrink: 0; padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-full); font-size: 13px; color: var(--gray-600); cursor: pointer; transition: all 0.2s; white-space: nowrap; } .filter-tag:hover { border-color: var(--primary); color: var(--primary); } .filter-tag.active { background: var(--primary); border-color: var(--primary); color: white; } /* 加载动画 */ .loading-spinner { display: flex; justify-content: center; padding: 40px; } .loading-spinner::after { content: ''; width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* 空状态 */ .empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; } .empty-icon { width: 80px; height: 80px; margin: 0 auto 16px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); } .empty-icon svg { width: 40px; height: 40px; } .empty-text { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
平台托管资金 · 验号后放款 · 争议仲裁保障