/* 商品交易页面专用样式 */

/* 商品卡片样式 */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 价格标签样式 */
.price-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* 商品状态标签 */
.condition-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.condition-new {
    background: #dcfce7;
    color: #166534;
}

.condition-like-new {
    background: #dbeafe;
    color: #1e40af;
}

.condition-good {
    background: #fef3c7;
    color: #92400e;
}

.condition-fair {
    background: #fed7d7;
    color: #b91c1c;
}

/* 分类导航样式 */
.category-nav {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #6b7280;
}

.category-item:hover {
    background: #f3f4f6;
    color: #10b981;
    transform: translateX(4px);
}

.category-item.active {
    background: #10b981;
    color: white;
}

/* 搜索筛选样式 */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 16px;
    }
    
    .category-nav {
        padding: 12px;
    }
    
    .filter-section {
        padding: 16px;
    }
}